Add Deluge and icon to start of toolbar in webui

This commit is contained in:
Calum Lind 2012-01-06 19:24:43 +00:00
parent 57df1bb7c4
commit 527d5541d7
2 changed files with 20 additions and 4 deletions

View File

@ -12,9 +12,19 @@ input {
}
.x-deluge-main-panel {
background-image: url('../icons/deluge.png');
background-image: url('../icons/deluge.png') !important;
}
#tbar-deluge-text.x-item-disabled * {
color:black !important;
font-weight: bold;
}
#tbar-deluge-text.x-item-disabled {
opacity: 1 !important;
}
.deluge-torrents td, .x-deluge-peers td {
height: 16px;
line-height: 16px;

View File

@ -39,6 +39,12 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
constructor: function(config) {
config = Ext.apply({
items: [
{
id: 'tbar-deluge-text',
disabled: true,
text: _('Deluge'),
iconCls: 'x-deluge-main-panel',
}, new Ext.Toolbar.Separator(),
{
id: 'create',
disabled: true,
@ -58,7 +64,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
text: _('Remove'),
iconCls: 'icon-remove',
handler: this.onTorrentAction
},'|',{
}, new Ext.Toolbar.Separator(),{
id: 'pause',
disabled: true,
text: _('Pause'),
@ -70,7 +76,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
text: _('Resume'),
iconCls: 'icon-resume',
handler: this.onTorrentAction
},'|',{
}, new Ext.Toolbar.Separator(),{
id: 'up',
cls: 'x-btn-text-icon',
disabled: true,
@ -83,7 +89,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
text: _('Down'),
iconCls: 'icon-down',
handler: this.onTorrentAction
},'|',{
}, new Ext.Toolbar.Separator(),{
id: 'preferences',
text: _('Preferences'),
iconCls: 'x-deluge-preferences',