[hamster-applet] using theme color (should mix with background though to get less contrast)



commit 67984ab50e3eea514de70a437817bbf2e705798d
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed May 20 15:23:14 2009 +0100

    using theme color (should mix with background though to get less contrast)
---
 hamster/applet.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hamster/applet.py b/hamster/applet.py
index 00e4809..18ecf0a 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -418,9 +418,10 @@ Now, start tracking!
         self.completion.clear()
 
         if activity.start_time:
+            bgcolor = gtk.Style().bg[gtk.STATE_NORMAL].to_string()
             time_cell = gtk.CellRendererPixbuf()
             time_cell.set_property("icon-name", "appointment-new")
-            time_cell.set_property("cell-background", "#f6f6f6")
+            time_cell.set_property("cell-background", bgcolor)
             
             self.completion.pack_start(time_cell, False)
 
@@ -431,7 +432,7 @@ Now, start tracking!
                 
             time_cell.set_property("text", time)
             time_cell.set_property("scale", 0.8)
-            time_cell.set_property("cell-background", "#f6f6f6")
+            time_cell.set_property("cell-background", bgcolor)
             self.completion.pack_start(time_cell, False)
 
         activity_cell = gtk.CellRendererText()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]