[gnumeric] Make the row and column headers math the theme better.



commit 8a675bcfb1c391215c4ff01365a2f5b28438ac61
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sat Jan 8 15:39:17 2011 -0700

    Make the row and column headers math the theme better.
    
    2011-01-08  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/item-bar.c (ib_draw_cell): use selection colours

 ChangeLog      |    4 ++++
 NEWS           |    1 +
 src/item-bar.c |   12 ++++++------
 3 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 500ed8c..89c724b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-08  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* src/item-bar.c (ib_draw_cell): use selection colours
+	
 2011-01-07  Morten Welinder  <terra gnome org>
 
 	* src/func.c (gnm_func_sanity_check1): Improve check of
diff --git a/NEWS b/NEWS
index 48e4fe2..7d4cb21 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Andreas:
 	* Fix ODF import of sheets with far forward references. [#636968]
 	* Add EEK support to EURO and EUROCONVERT.
 	* Fix leaks in potentially failing analysis tools.
+	* Make the row and column headers math the theme better.
 
 Jean:
 	* Only disable the formula bar when a chart sheet is selected. [#636031]
diff --git a/src/item-bar.c b/src/item-bar.c
index 9c3b7cd..ad5eb99 100644
--- a/src/item-bar.c
+++ b/src/item-bar.c
@@ -253,24 +253,24 @@ ib_draw_cell (ItemBar const * const ib, cairo_t *cr,
 	case COL_ROW_NO_SELECTION:
 		shadow = GTK_SHADOW_OUT;
 		font   = ib->normal_font;
-		color = GO_COLOR_FROM_GDK (style->bg[GTK_STATE_ACTIVE]);
-		font_color = GO_COLOR_FROM_GDK (style->fg[GTK_STATE_ACTIVE]);
+		color = GO_COLOR_FROM_GDK (style->bg[GTK_STATE_NORMAL]);
+		font_color = GO_COLOR_FROM_GDK (style->fg[GTK_STATE_NORMAL]);
 		ascent = ib->normal_font_ascent;
 		break;
 
 	case COL_ROW_PARTIAL_SELECTION:
 		shadow = GTK_SHADOW_OUT;
 		font   = ib->bold_font;
-		color = GO_COLOR_FROM_GDK (style->dark[GTK_STATE_PRELIGHT]);
-		font_color = GO_COLOR_FROM_GDK (style->fg[GTK_STATE_PRELIGHT]);
+		color = GO_COLOR_FROM_GDK (style->bg[GTK_STATE_SELECTED]);
+		font_color = GO_COLOR_FROM_GDK (style->fg[GTK_STATE_SELECTED]);
 		ascent = ib->bold_font_ascent;
 		break;
 
 	case COL_ROW_FULL_SELECTION:
 		shadow = GTK_SHADOW_IN;
 		font   = ib->bold_font;
-		color = GO_COLOR_FROM_GDK (style->dark[GTK_STATE_NORMAL]);
-		font_color = GO_COLOR_FROM_GDK (style->fg[GTK_STATE_NORMAL]);
+		color = GO_COLOR_FROM_GDK (style->dark[GTK_STATE_SELECTED]);
+		font_color = GO_COLOR_FROM_GDK (style->fg[GTK_STATE_SELECTED]);
 		ascent = ib->bold_font_ascent;
 		break;
 	}



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