r3240 - in trunk/src/target/OM-2007.2/libraries/moko-gtk-engine: . data

thomas at sita.openmoko.org thomas at sita.openmoko.org
Mon Oct 22 12:16:34 CEST 2007


Author: thomas
Date: 2007-10-22 12:16:33 +0200 (Mon, 22 Oct 2007)
New Revision: 3240

Modified:
   trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog
   trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/data/gtkrc
Log:
* data/gtkrc: Button style tweaks


Modified: trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog	2007-10-22 08:59:54 UTC (rev 3239)
+++ trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog	2007-10-22 10:16:33 UTC (rev 3240)
@@ -1,3 +1,7 @@
+2007-10-22  Thomas Wood  <thomas at openedhand.com>
+
+	* data/gtkrc: Button style tweaks
+
 2007-10-10  Thomas Wood  <thomas at openedhand.com>
 
 	* data/gtkrc: Correct ComboBox style

Modified: trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/data/gtkrc
===================================================================
--- trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/data/gtkrc	2007-10-22 08:59:54 UTC (rev 3239)
+++ trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/data/gtkrc	2007-10-22 10:16:33 UTC (rev 3240)
@@ -100,6 +100,8 @@
 
 style "button"
 {
+  # inner-border was added in GTK+ 2.10
+  GtkButton::inner_border = {15, 15, 10, 10}
   engine "moko-engine" {
     border = TRUE
     gradient = TRUE
@@ -107,14 +109,45 @@
 }
 class "GtkButton" style "button"
 
-style "combo-fix" {
+style "button-colors" {
+  bg[NORMAL] = "#333"
+  fg[NORMAL] = "#fff"
+
+  bg[PRELIGHT] = "#333"
+  fg[PRELIGHT] = "#fff"
+}
+widget_class "GtkButton*" style "button-colors"
+
+style "treeview-header" {
+
+  # inner-border was added in GTK+ 2.10
+  GtkButton::inner_border = {0, 0, 0, 0}
+
+  bg[NORMAL] = "#eee"
+  fg[NORMAL] = "#000"
+
+  bg[PRELIGHT] = "#eee"
+  fg[PRELIGHT] = "#000"
+
+  engine "moko-engine" {
+    border = FALSE
+    gradient = TRUE
+  }
+}
+widget_class "*GtkTreeView.GtkButton*" style "treeview-header"
+
+style "combo" {
   bg[NORMAL] = @selected_bg_color
   text[NORMAL] = @selected_fg_color
 
   bg[PRELIGHT] = @selected_bg_color
   text[PRELIGHT] = @selected_fg_color
+
+  engine "moko-engine" {
+    gradient = TRUE
+  }
 }
-widget_class "*Combo*" style "combo-fix"
+widget_class "*Combo*" style "combo"
 
 style "toolbar"
 {





More information about the commitlog mailing list