[Sugar-devel] [PATCH v2 sugar-artwork] Fix color and background-color for GtkWindow - SL #3917

Manuel Quiñones manuq at laptop.org
Mon Sep 24 23:42:11 EDT 2012


GtkStyleContext doesn't have .window class, GtkWindow should be used.
This is what a11y_base.css does in gnome-themes-standard.  Also in
gnome-themes-standard they don't use the .background class, which
affects the window background [1], and set the background-color in
GtkWindow directly.  This patch does the same.

[1] http://developer.gnome.org/gtk3/stable/GtkStyleContext.html#GTK-STYLE-CLASS-BACKGROUND:CAPS

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 gtk3/theme/gtk-widgets.css.em | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 24a4c17..062acbe 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -117,18 +117,12 @@ icon_large = icon_base * 5
 
 /* Backgrounds and windows */
 
-.background {
-    padding: 0px;
-    border-width: 0px;
-    background-color: @panel_grey;
-}
-
-.window {
+GtkWindow {
     background-color: @panel_grey;
     color: @black;
 }
 
-SugarIntroWindow.background {
+SugarIntroWindow {
     background-color: @white;
 }
 
@@ -373,7 +367,7 @@ SugarHTray * , SugarVTray * { background-color: @toolbar_grey;}
 
 /* Menus and palettes */
 
-SugarPaletteWindowWidget.background {
+SugarPaletteWindowWidget {
     background-color: @black;
 }
 
@@ -381,7 +375,7 @@ SugarPaletteWindowWidget GtkLabel {
     color: @white;
 }
 
-SugarPaletteMenuWidget.background {
+SugarPaletteMenuWidget {
     background-color: @black;
 }
 
@@ -686,7 +680,7 @@ GtkImage {
 
 /* Sugar Frame Window */
 
-SugarFrameWindow.background {
+SugarFrameWindow {
     background-color: @toolbar_grey;
 }
 
-- 
1.7.11.4



More information about the Sugar-devel mailing list