r7111 - in bigboard/trunk/bigboard: . themes



Author: walters
Date: 2007-12-21 10:16:27 -0600 (Fri, 21 Dec 2007)
New Revision: 7111

Modified:
   bigboard/trunk/bigboard/big_widgets.py
   bigboard/trunk/bigboard/themes/default.py
   bigboard/trunk/bigboard/themes/fedora.py
Log:
Fix link color in milky theme.



Modified: bigboard/trunk/bigboard/big_widgets.py
===================================================================
--- bigboard/trunk/bigboard/big_widgets.py	2007-12-21 03:16:26 UTC (rev 7110)
+++ bigboard/trunk/bigboard/big_widgets.py	2007-12-21 16:16:27 UTC (rev 7111)
@@ -65,8 +65,8 @@
         
     @log_except(_logger)
     def __sync_theme(self, *args):
-        _logger.debug("doing theme sync")
         themename = gconf.client_get_default().get_string('/apps/bigboard/theme')
+        _logger.debug("doing theme sync: %r", themename)        
         if themename == 'Fedora':
             from bigboard.themes.fedora import FedoraTheme
             self.__theme = FedoraTheme.getInstance()
@@ -94,7 +94,7 @@
 
     def __sync_theme(self, tm):
         theme = tm.get_theme()
-        theme.set_properties(self)
+        theme.set_theme_properties(self)
         self._on_theme_changed(theme)             
         
 class ThemedText(hippo.CanvasText, ThemedWidgetMixin):

Modified: bigboard/trunk/bigboard/themes/default.py
===================================================================
--- bigboard/trunk/bigboard/themes/default.py	2007-12-21 03:16:26 UTC (rev 7110)
+++ bigboard/trunk/bigboard/themes/default.py	2007-12-21 16:16:27 UTC (rev 7111)
@@ -87,7 +87,7 @@
         ctx.update_layout(layout)
         ctx.show_layout(layout)
         
-    def set_properties(self, widget):
+    def set_theme_properties(self, widget):
         if isinstance(widget, ThemedWidgetMixin) \
            and isinstance(widget, hippo.CanvasText):
             hints = widget.get_theme_hints()
@@ -97,6 +97,8 @@
                 widget.set_properties(padding_left=8, padding_top=4, padding_bottom=2)
             if 'subforeground' in hints:
                 widget.set_properties(color=self.subforeground)
+            elif isinstance(widget, hippo.CanvasLink):
+                widget.set_properties(color=0x0066DDFF)
             else:
                 widget.set_properties(color=self.foreground)
         

Modified: bigboard/trunk/bigboard/themes/fedora.py
===================================================================
--- bigboard/trunk/bigboard/themes/fedora.py	2007-12-21 03:16:26 UTC (rev 7110)
+++ bigboard/trunk/bigboard/themes/fedora.py	2007-12-21 16:16:27 UTC (rev 7111)
@@ -1,6 +1,6 @@
 import os,sys
 
-import gtk,cairo
+import gtk,cairo,hippo
 
 from bigboard.themes.default import DefaultTheme
 
@@ -57,5 +57,11 @@
         cr.fill()
         super(FedoraTheme, self).draw_more_button(cr, area)
         
+    def set_theme_properties(self, widget):
+        if isinstance(widget, hippo.CanvasLink):
+            widget.set_properties(color=self.foreground)
+        else:
+            super(FedoraTheme, self).set_theme_properties(widget)
+        
 def getInstance():
     return FedoraTheme.getInstance()



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