[gnome-games] sudoku: adjust colors a bit



commit 038a17d9887bd5625f73dc1461d6abd65837692b
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Tue May 10 00:27:44 2011 +0200

    sudoku: adjust colors a bit

 gnome-sudoku/src/lib/number_box.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index 1b3a8ce..4087de1 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -571,8 +571,7 @@ class NumberBox (Gtk.DrawingArea):
             #    self.style.base[self.state]
             #    )
             #Gdk.cairo_set_source_rgba(
-            debug_set_color_rgba(
-                    cr, style_ctx.get_color(self.get_state_flags()))
+            cr.set_source_rgb(1.0, 1.0, 1.0)
         cr.rectangle(
             0, 0, w, h,
             )
@@ -584,7 +583,7 @@ class NumberBox (Gtk.DrawingArea):
         #    )
         #Gdk.cairo_set_source_rgba(
         debug_set_color_rgba(
-                    cr, style_ctx.get_color(Gtk.StateFlags.SELECTED))
+                    cr, style_ctx.get_background_color(Gtk.StateFlags.SELECTED))
 
         border = 4 * w / BASE_SIZE
         cr.rectangle(
@@ -605,7 +604,7 @@ class NumberBox (Gtk.DrawingArea):
         #    )
         #Gdk.cairo_set_source_rgba(
         debug_set_color_rgba(
-                cr, style_ctx.get_color(self.get_state_flags()))
+                cr, style_ctx.get_border_color(self.get_state_flags()))
 
         cr.set_line_width(NORMAL_LINE_WIDTH)
         # top rectangle



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