diff options
author | Martin Stransky <stransky@anakreon.cz> | 2015-05-29 14:46:33 +0200 |
---|---|---|
committer | Martin Stransky <stransky@anakreon.cz> | 2015-05-29 14:46:33 +0200 |
commit | 8ec5c8a28f25460369710f704d0d90ce48707b35 (patch) | |
tree | 87a5a066f448762f73caf3a2ed502695852aec51 /mozilla-1169233.patch | |
parent | Added patch for mozbz#1160154 - huge bookmark padding (diff) | |
download | librewolf-fedora-ff-8ec5c8a28f25460369710f704d0d90ce48707b35.tar.gz librewolf-fedora-ff-8ec5c8a28f25460369710f704d0d90ce48707b35.tar.bz2 librewolf-fedora-ff-8ec5c8a28f25460369710f704d0d90ce48707b35.zip |
Added patch for mozbz#1169233 - Disabled menu items are not greyed out
Diffstat (limited to 'mozilla-1169233.patch')
-rw-r--r-- | mozilla-1169233.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/mozilla-1169233.patch b/mozilla-1169233.patch new file mode 100644 index 0000000..103a614 --- /dev/null +++ b/mozilla-1169233.patch @@ -0,0 +1,71 @@ +# HG changeset patch +# User Martin Stransky <stransky@redhat.com> +# Parent f986e55c4e0b41c6b50bd74d287614b564d7895f +Bug 1169233 - Get grey (inactive) text color from menu labels, r=?karlt + +diff --git a/widget/gtk/nsLookAndFeel.cpp b/widget/gtk/nsLookAndFeel.cpp +--- a/widget/gtk/nsLookAndFeel.cpp ++++ b/widget/gtk/nsLookAndFeel.cpp +@@ -237,20 +237,18 @@ nsLookAndFeel::NativeGetColor(ColorID aI + case eColorID_inactiveborder: + // inactive window border + gtk_style_context_get_border_color(mBackgroundStyle, + GTK_STATE_FLAG_INSENSITIVE, + &gdk_color); + aColor = GDK_RGBA_TO_NS_RGBA(gdk_color); + break; + case eColorID_graytext: // disabled text in windows, menus, etc. +- case eColorID_inactivecaptiontext: // text in inactive window caption +- gtk_style_context_get_color(mBackgroundStyle, +- GTK_STATE_FLAG_INSENSITIVE, &gdk_color); +- aColor = GDK_RGBA_TO_NS_RGBA(gdk_color); ++ case eColorID_inactivecaptiontext: // text in inactive window caption ++ aColor = sMenuTextInactive; + break; + case eColorID_inactivecaption: + // inactive window caption + gtk_style_context_get_background_color(mBackgroundStyle, + GTK_STATE_FLAG_INSENSITIVE, + &gdk_color); + aColor = GDK_RGBA_TO_NS_RGBA(gdk_color); + break; +@@ -1023,16 +1021,18 @@ nsLookAndFeel::Init() + g_object_ref_sink(menu); + + gtk_container_add(GTK_CONTAINER(menuitem), accel_label); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); + + style = gtk_widget_get_style_context(accel_label); + gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color); + sMenuText = GDK_RGBA_TO_NS_RGBA(color); ++ gtk_style_context_get_color(style, GTK_STATE_FLAG_INSENSITIVE, &color); ++ sMenuTextInactive = GDK_RGBA_TO_NS_RGBA(color); + + style = gtk_widget_get_style_context(menu); + gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color); + sMenuBackground = GDK_RGBA_TO_NS_RGBA(color); + + style = gtk_widget_get_style_context(menuitem); + gtk_style_context_get_background_color(style, GTK_STATE_FLAG_PRELIGHT, &color); + sMenuHover = GDK_RGBA_TO_NS_RGBA(color); +diff --git a/widget/gtk/nsLookAndFeel.h b/widget/gtk/nsLookAndFeel.h +--- a/widget/gtk/nsLookAndFeel.h ++++ b/widget/gtk/nsLookAndFeel.h +@@ -54,16 +54,17 @@ protected: + + // Cached colors + nscolor sInfoBackground; + nscolor sInfoText; + nscolor sMenuBackground; + nscolor sMenuBarText; + nscolor sMenuBarHoverText; + nscolor sMenuText; ++ nscolor sMenuTextInactive; + nscolor sMenuHover; + nscolor sMenuHoverText; + nscolor sButtonText; + nscolor sButtonHoverText; + nscolor sButtonBackground; + nscolor sFrameOuterLightBorder; + nscolor sFrameInnerDarkBorder; + nscolor sOddCellBackground; |