mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +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)
|
||||
Core:
|
||||
* Fix oldstateupgrader for those upgrading from 0.5.x
|
||||
|
|
|
@ -122,8 +122,8 @@ class FilterTreeView(component.Component):
|
|||
|
||||
#colors using current theme.
|
||||
style = self.window.window.get_style()
|
||||
self.color_insensitive = style.base[gtk.STATE_INSENSITIVE]
|
||||
self.color_sensitive = style.base[gtk.STATE_NORMAL]
|
||||
self.colour_backgrond = style.bg[gtk.STATE_NORMAL]
|
||||
self.colour_foreground = style.fg[gtk.STATE_NORMAL]
|
||||
|
||||
def start(self):
|
||||
#add Cat nodes:
|
||||
|
@ -218,17 +218,16 @@ class FilterTreeView(component.Component):
|
|||
else:
|
||||
self.renderpix.set_property("visible", False)
|
||||
|
||||
#cell.set_property('editable', False)
|
||||
if cat == "cat":
|
||||
txt = label
|
||||
col = self.color_insensitive
|
||||
cell.set_property("cell-background-gdk", self.colour_background)
|
||||
cell.set_property("foreground-gdk", self.colour_foreground)
|
||||
else:
|
||||
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("cell-background-gdk",col)
|
||||
self.renderpix.set_property("cell-background-gdk",col)
|
||||
|
||||
def get_pixmap(self, cat, value):
|
||||
if cat == "state":
|
||||
|
|
Loading…
Add table
Reference in a new issue