[Sugar-devel] [PATCH sugar-artwork] Add style for naming alert

Daniel Drake dsd at laptop.org
Sat Sep 17 13:37:05 EDT 2011


Apply a white background to the naming alert window and the entry widget.
The textbuffer widgets require a grey background still, as that is used
to draw their borders.
---
 gtk/theme/gtkrc.em |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em
index 0811548..98ca7cc 100644
--- a/gtk/theme/gtkrc.em
+++ b/gtk/theme/gtkrc.em
@@ -773,6 +773,11 @@ widget_class "*<SugarSectionView>*"      style "white-bg-child"
 widget_class "*<SugarIntroWindow>"       style "white-bg"
 widget_class "*<SugarIntroWindow>*"      style "white-bg-child"
 
+# Naming alert needs white background for main window and for entry widget,
+# but other backgrounds must be left grey as they are used for drawing borders
+widget_class "*<SugarNamingAlert>"              style "white-bg"
+widget_class "*<SugarNamingAlert>*<GtkEntry>"   style "white-bg-child"
+
 # The notebook is very high, so that everything is overriden
 # Only the color of the tab labels needs to be modified inside the
 # notebooks in this style (and the widget itself).
-- 
1.7.6



More information about the Sugar-devel mailing list