summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/theme.c4
1 files changed, 4 insertions, 0 deletions
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: