From 8f36c551693cb81a386b6f48178189b5eea38d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Fri, 20 Nov 2015 03:13:14 +0100 Subject: Gtk3: fix colors Add GTK_STYLE_CLASS_BACKGROUND class to context, so we have correct colors from the GTK+ theme instead of white text over black background. --- src/ui/theme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/theme.c b/src/ui/theme.c index 390b0375..a0f745b4 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -1555,6 +1555,10 @@ meta_set_color_from_style (GdkRGBA *color, { GdkRGBA other; + /* Add background class to context to get the correct colors from the GTK+ + theme instead of white text over black background. */ + gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND); + switch (component) { case META_GTK_COLOR_BG: -- cgit v1.2.1