From 79fb4b260de0eaadf4c85deab57285ac2c8ad743 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 27 Jan 2009 21:21:15 +0000 Subject: Fix #761 use proper theme colours in sidebar --- ChangeLog | 7 +++++++ deluge/ui/gtkui/filtertreeview.py | 13 ++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index a64d6390e..ad69125f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/deluge/ui/gtkui/filtertreeview.py b/deluge/ui/gtkui/filtertreeview.py index 65e0fd56b..c1cafc27c 100644 --- a/deluge/ui/gtkui/filtertreeview.py +++ b/deluge/ui/gtkui/filtertreeview.py @@ -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": -- cgit