summaryrefslogtreecommitdiff
path: root/data/theme
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-06-21 18:35:13 -0400
committerlukefromdc <[email protected]>2018-06-25 18:47:53 -0400
commit5ca1fb1a1b34bdbaf0c966d9cc786ecf71d0df21 (patch)
tree34b3c2b7ba72f3f6cb414aea2d8532265f891727 /data/theme
parent2d3406f482a341805f9827b95e4b588feb0218ce (diff)
downloadmate-panel-5ca1fb1a1b34bdbaf0c966d9cc786ecf71d0df21.tar.bz2
mate-panel-5ca1fb1a1b34bdbaf0c966d9cc786ecf71d0df21.tar.xz
Panel-gtk.c: Show menu icons only when "menus-have-icons" is set
Most panel menus excluding main menus. Bind gsettings preference "menus have icons" to visibility of icon. Pack the icon into a box with a 16px min-width set in panel.css to hold the space when the icons are not shown Duplicate as much as possible behavior of now-deprecated GtkImageMenuItem replaced by github.com/mate-desktop/mate-panel/commit/86701517e7d7cb3d2c08a40d76af97308f18902c Use only one icon-settings gsettings object to control this in all menuitems controlled by panel-gtk.c The use of a single gsettings object is based on code by Albert Muktupavels https://github.com/muktupavels
Diffstat (limited to 'data/theme')
-rw-r--r--data/theme/mate-panel.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/theme/mate-panel.css b/data/theme/mate-panel.css
index bfa890d1..e53950d2 100644
--- a/data/theme/mate-panel.css
+++ b/data/theme/mate-panel.css
@@ -8,3 +8,6 @@ MatePanelAppletFrameDBus > MatePanelAppletFrameDBus {
background-size: 12px 22px;
}
+.mate-panel-menu-icon-box{
+ min-width: 16px;
+}