[gtk+/gtk-3-14] Fix fonts in context menus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] Fix fonts in context menus
- Date: Wed, 1 Oct 2014 11:15:26 +0000 (UTC)
commit d763169bb5111e90cf17728681653fff292a7ca0
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 1 07:11:43 2014 -0400
Fix fonts in context menus
Context menus inherit their style from the widget they are attached
to. This can have unexpected effects in particular for font, as can
be seen in gedit or gnome-calculator. Prevent this by resetting
the font of context-menus to the initial value.
gtk/resources/theme/Adwaita/_common.scss | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index f9e086a..72c56fa 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -2825,3 +2825,8 @@ GtkVolumeButton.button { padding: 8px; }
&:backdrop { color: if($variant=='light', $backdrop_base_color,
$backdrop_fg_color); }
}
+
+/* Decouple the font of context menus from their entry/textview */
+.context-menu {
+ font: initial;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]