[Sugar-devel] [PATCH] Add the SugarTimeoutIcon to set the font and background color
Simon Schampijer
simon at schampijer.de
Thu Aug 11 18:37:13 EDT 2011
Signed-off-by: Benjamin Berg <benzea at sugarlabs.org>
Reviewed-by: Simon Schampijer <simon at laptop.org>
---
gtk/theme/gtkrc.em | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em
index 69dccd9..7f180a7 100644
--- a/gtk/theme/gtkrc.em
+++ b/gtk/theme/gtkrc.em
@@ -740,6 +740,16 @@ style "parent-bg"
}
}
+style "sugartimeout"
+{
+ bg[NORMAL] = $white
+ fg[NORMAL] = $button_grey
+ bg[ACTIVE] = $toolbar_grey
+ fg[ACTIVE] = $white
+ bg[PRELIGHT] = $white
+ fg[PRELIGHT] = $button_grey
+}
+
####################################################################
# Default style, setting some generic options and style properties
####################################################################
@@ -853,6 +863,9 @@ widget_class "*<GtkToolbar>" style "toolbar"
# Tray
widget_class "*<SugarTrayIcon>*" style "trayicon"
+# Timeout Icon
+widget_class "*<SugarTimeoutIcon>*" style "sugartimeout"
+
# Widgets that should get the background color from the parent
widget_class "*<GtkEventBox>" style "parent-bg"
widget_class "*<GtkLayout>" style "parent-bg"
--
1.7.4.4
More information about the Sugar-devel
mailing list