mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
Add Deluge and icon to start of toolbar in webui
This commit is contained in:
parent
57df1bb7c4
commit
527d5541d7
@ -12,9 +12,19 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.x-deluge-main-panel {
|
.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 {
|
.deluge-torrents td, .x-deluge-peers td {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
|
@ -39,6 +39,12 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
|||||||
constructor: function(config) {
|
constructor: function(config) {
|
||||||
config = Ext.apply({
|
config = Ext.apply({
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
id: 'tbar-deluge-text',
|
||||||
|
disabled: true,
|
||||||
|
text: _('Deluge'),
|
||||||
|
iconCls: 'x-deluge-main-panel',
|
||||||
|
}, new Ext.Toolbar.Separator(),
|
||||||
{
|
{
|
||||||
id: 'create',
|
id: 'create',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
@ -58,7 +64,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
|||||||
text: _('Remove'),
|
text: _('Remove'),
|
||||||
iconCls: 'icon-remove',
|
iconCls: 'icon-remove',
|
||||||
handler: this.onTorrentAction
|
handler: this.onTorrentAction
|
||||||
},'|',{
|
}, new Ext.Toolbar.Separator(),{
|
||||||
id: 'pause',
|
id: 'pause',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
text: _('Pause'),
|
text: _('Pause'),
|
||||||
@ -70,7 +76,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
|||||||
text: _('Resume'),
|
text: _('Resume'),
|
||||||
iconCls: 'icon-resume',
|
iconCls: 'icon-resume',
|
||||||
handler: this.onTorrentAction
|
handler: this.onTorrentAction
|
||||||
},'|',{
|
}, new Ext.Toolbar.Separator(),{
|
||||||
id: 'up',
|
id: 'up',
|
||||||
cls: 'x-btn-text-icon',
|
cls: 'x-btn-text-icon',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
@ -83,7 +89,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
|||||||
text: _('Down'),
|
text: _('Down'),
|
||||||
iconCls: 'icon-down',
|
iconCls: 'icon-down',
|
||||||
handler: this.onTorrentAction
|
handler: this.onTorrentAction
|
||||||
},'|',{
|
}, new Ext.Toolbar.Separator(),{
|
||||||
id: 'preferences',
|
id: 'preferences',
|
||||||
text: _('Preferences'),
|
text: _('Preferences'),
|
||||||
iconCls: 'x-deluge-preferences',
|
iconCls: 'x-deluge-preferences',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user