diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2018-11-03 19:07:45 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2018-11-05 22:05:46 +0000 |
| commit | 3cf5f982d9a66a05e7fafbcd3fd4ff6f4f3c9740 (patch) | |
| tree | 17996cbfb450290de99ab213652bbcc3856ad1f7 /src/ui/dialog/inkscape-preferences.cpp | |
| parent | Improve positioning of menu icons (diff) | |
| download | inkscape-3cf5f982d9a66a05e7fafbcd3fd4ff6f4f3c9740.tar.gz inkscape-3cf5f982d9a66a05e7fafbcd3fd4ff6f4f3c9740.zip | |
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.
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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, "<span size=\"small\">Reloading icons will close all windows and open them again. No data will be lost.</span>", "", false); |
