summaryrefslogtreecommitdiff
path: root/src/ui/theme.c
diff options
context:
space:
mode:
authorBalló György <[email protected]>2015-11-20 03:13:14 +0100
committerWolfgang Ulbrich <[email protected]>2015-11-20 23:16:16 +0100
commit8f36c551693cb81a386b6f48178189b5eea38d91 (patch)
tree1685f740ad1cb126ebf019fd134502199cc4c2ab /src/ui/theme.c
parentc5062a8c60e083af863557ce6dbc57bae80c862b (diff)
downloadmarco-8f36c551693cb81a386b6f48178189b5eea38d91.tar.bz2
marco-8f36c551693cb81a386b6f48178189b5eea38d91.tar.xz
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.
Diffstat (limited to 'src/ui/theme.c')
-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: