add a home icon and corresponding icon class

adjust the file browser window title and add the remaining toolbar items
This commit is contained in:
Damien Churchill 2010-03-09 23:48:56 +00:00
parent 3a56af99c0
commit 24ce77cdf0
3 changed files with 13 additions and 3 deletions

View File

@ -363,3 +363,7 @@ dl.singleline dd {
.icon-forward {
background-image: url('../icons/forward.png') !important;
}
.icon-home {
background-image: url('../icons/home.png') !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

View File

@ -1,7 +1,7 @@
Ext.namespace('Deluge');
Deluge.FileBrowser = Ext.extend(Ext.Window, {
title: 'Filebrowser',
title: _('File Browser'),
width: 500,
height: 400,
@ -12,11 +12,17 @@ Deluge.FileBrowser = Ext.extend(Ext.Window, {
this.add({
xtype: 'toolbar',
items: [{
cls: 'x-btn-icon',
text: _('Back'),
iconCls: 'icon-back'
}, {
cls: 'x-btn-icon',
text: _('Forward'),
iconCls: 'icon-forward'
}, {
text: _('Up'),
iconCls: 'icon-up'
}, {
text: _('Home'),
iconCls: 'icon-home'
}]
});
}