mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
Fix #761 use proper theme colours in sidebar
This commit is contained in:
parent
3f414f4bdf
commit
79fb4b260d
2 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Deluge 1.1.2 - (In Development)
|
||||||
|
Core:
|
||||||
|
* Fix issue where torrents get stuck Checking
|
||||||
|
|
||||||
|
GtkUI:
|
||||||
|
* Fix #761 use proper theme colours in sidebar
|
||||||
|
|
||||||
Deluge 1.1.1 - (24 January 2009)
|
Deluge 1.1.1 - (24 January 2009)
|
||||||
Core:
|
Core:
|
||||||
* Fix oldstateupgrader for those upgrading from 0.5.x
|
* Fix oldstateupgrader for those upgrading from 0.5.x
|
||||||
|
|
|
@ -122,8 +122,8 @@ class FilterTreeView(component.Component):
|
||||||
|
|
||||||
#colors using current theme.
|
#colors using current theme.
|
||||||
style = self.window.window.get_style()
|
style = self.window.window.get_style()
|
||||||
self.color_insensitive = style.base[gtk.STATE_INSENSITIVE]
|
self.colour_backgrond = style.bg[gtk.STATE_NORMAL]
|
||||||
self.color_sensitive = style.base[gtk.STATE_NORMAL]
|
self.colour_foreground = style.fg[gtk.STATE_NORMAL]
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
#add Cat nodes:
|
#add Cat nodes:
|
||||||
|
@ -218,17 +218,16 @@ class FilterTreeView(component.Component):
|
||||||
else:
|
else:
|
||||||
self.renderpix.set_property("visible", False)
|
self.renderpix.set_property("visible", False)
|
||||||
|
|
||||||
#cell.set_property('editable', False)
|
|
||||||
if cat == "cat":
|
if cat == "cat":
|
||||||
txt = label
|
txt = label
|
||||||
col = self.color_insensitive
|
cell.set_property("cell-background-gdk", self.colour_background)
|
||||||
|
cell.set_property("foreground-gdk", self.colour_foreground)
|
||||||
else:
|
else:
|
||||||
txt = "%s (%s)" % (label, count)
|
txt = "%s (%s)" % (label, count)
|
||||||
col = self.color_sensitive
|
cell.set_property("cell-background", None)
|
||||||
|
cell.set_property("foreground", None)
|
||||||
|
|
||||||
cell.set_property('text', txt)
|
cell.set_property('text', txt)
|
||||||
cell.set_property("cell-background-gdk",col)
|
|
||||||
self.renderpix.set_property("cell-background-gdk",col)
|
|
||||||
|
|
||||||
def get_pixmap(self, cat, value):
|
def get_pixmap(self, cat, value):
|
||||||
if cat == "state":
|
if cat == "state":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue