summaryrefslogtreecommitdiff
path: root/mozilla-1169232.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@anakreon.cz>2015-06-01 14:10:16 +0200
committerMartin Stransky <stransky@anakreon.cz>2015-06-01 14:10:16 +0200
commit2f68d57f5cb9defee8c4cd9411cc5df0b33d478f (patch)
tree55651f0c3f9b309fb3260cda5b1d5b00de191318 /mozilla-1169232.patch
parentAdded patch for mozbz#1169233 - Disabled menu items are not greyed out (diff)
downloadlibrewolf-fedora-ff-2f68d57f5cb9defee8c4cd9411cc5df0b33d478f.tar.gz
librewolf-fedora-ff-2f68d57f5cb9defee8c4cd9411cc5df0b33d478f.tar.bz2
librewolf-fedora-ff-2f68d57f5cb9defee8c4cd9411cc5df0b33d478f.zip
Added fix for rhbz#1226868 - [GTK3] regression: bad colors make notifications unreadable
Diffstat (limited to 'mozilla-1169232.patch')
-rw-r--r--mozilla-1169232.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/mozilla-1169232.patch b/mozilla-1169232.patch
new file mode 100644
index 0000000..016e82f
--- /dev/null
+++ b/mozilla-1169232.patch
@@ -0,0 +1,27 @@
+# HG changeset patch
+# User Martin Stransky <stransky@redhat.com>
+# Parent f8d21278244bc0531513131f85a45e5736207ae1
+Bug 1169232 - [gtk3] add background class to tooltip window
+ to get correct background color. r=?karlt
+
+diff --git a/widget/gtk/nsLookAndFeel.cpp b/widget/gtk/nsLookAndFeel.cpp
+--- a/widget/gtk/nsLookAndFeel.cpp
++++ b/widget/gtk/nsLookAndFeel.cpp
+@@ -1004,16 +1004,17 @@ nsLookAndFeel::Init()
+ gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sMozWindowBackground = GDK_RGBA_TO_NS_RGBA(color);
+ gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sMozWindowText = GDK_RGBA_TO_NS_RGBA(color);
+ gtk_style_context_restore(style);
+
+ // tooltip foreground and background
+ gtk_style_context_add_class(style, GTK_STYLE_CLASS_TOOLTIP);
++ gtk_style_context_add_class(style, GTK_STYLE_CLASS_BACKGROUND);
+ gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sInfoBackground = GDK_RGBA_TO_NS_RGBA(color);
+ gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sInfoText = GDK_RGBA_TO_NS_RGBA(color);
+ g_object_unref(style);
+
+ // menu foreground & menu background
+ GtkWidget *accel_label = gtk_accel_label_new("M");
bgstack15