From 3cf5f982d9a66a05e7fafbcd3fd4ff6f4f3c9740 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 3 Nov 2018 20:07:45 +0100 Subject: Add a preference to force enable/disable menu icons By default the theme decides whether it wants to display icons or not by using the "show-icons" attribute in the menus.xml file. This attribute is properly inherited an can therefore be used to selectively enable and disable icons globally (by setting it on the root element), in certain submenus, or individually per menu item. --- src/ui/dialog/inkscape-preferences.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui/dialog/inkscape-preferences.cpp') diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 419567474..9b0190d13 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -889,6 +889,13 @@ void InkscapePreferences::initPageUI() _page_theme.add_line(false, _("Secondary toolbar icon size:"), _misc_small_secondary, "", _("Set the size for the icons in secondary toolbars to use (requires restart)"), false); } + { + Glib::ustring menu_icons_labels[] = {_("Yes"), _("No"), _("Theme decides")}; + int menu_icons_values[] = {1, -1, 0}; + _menu_icons.init("/theme/menuIcons", menu_icons_labels, menu_icons_values, G_N_ELEMENTS(menu_icons_labels), 0); + _page_theme.add_line(false, _("Show icons in menus:"), _menu_icons, "", + _("You can either enable or disable all icons in menus. By default the theme determines which icons to display by using the 'show-icons' attribute in its 'menus.xml' file."), false); + } _apply_theme.set_label(_("Reload icons")); _apply_theme.set_tooltip_text(_("Apply icon changes (may take a few seconds)")); _page_theme.add_line(false, "", _apply_theme, "Reloading icons will close all windows and open them again. No data will be lost.", "", false); -- cgit v1.2.3