summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-09 22:37:37 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-10-09 22:37:37 +0000
commit0e48d870c28ccb6ab7654a60c2713bb0a629f6b3 (patch)
tree0afc46238422b2491947c008d95739a62803d47d /src/ui
parentMake sure old calls to insert behaves the same (diff)
downloadinkscape-0e48d870c28ccb6ab7654a60c2713bb0a629f6b3.tar.gz
inkscape-0e48d870c28ccb6ab7654a60c2713bb0a629f6b3.zip
Allow acces to user themes folder from themes tab along on system tab
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp2
-rw-r--r--src/ui/dialog/inkscape-preferences.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 52cec9538..d78f35987 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -1109,6 +1109,8 @@ void InkscapePreferences::initPageUI()
_page_theme.add_line(false, _("Change Gtk theme:"), _gtk_theme, "", "", false);
_gtk_theme.signal_changed().connect(sigc::mem_fun(*this, &InkscapePreferences::themeChange));
}
+ _sys_user_themes_dir_copy.init(g_build_filename(g_get_user_data_dir(), "themes", NULL), _("Open themes folder"));
+ _page_theme.add_line(true, _("User themes: "), _sys_user_themes_dir_copy, "", _("Location of the user’s themes"), true);
_dark_theme.init(_("Use dark theme"), "/theme/preferDarkTheme", false);
_page_theme.add_line(true, "", _dark_theme, "", _("Use dark theme"), true);
_dark_theme.signal_clicked().connect(sigc::mem_fun(*this, &InkscapePreferences::themeChange));
diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h
index db7d63176..2475339f6 100644
--- a/src/ui/dialog/inkscape-preferences.h
+++ b/src/ui/dialog/inkscape-preferences.h
@@ -237,6 +237,7 @@ protected:
UI::Widget::PrefColorPicker _t_node_pathoutline_color;
UI::Widget::PrefCombo _gtk_theme;
+ UI::Widget::PrefOpenFolder _sys_user_themes_dir_copy;
UI::Widget::PrefCombo _icon_theme;
UI::Widget::PrefCheckButton _dark_theme;
UI::Widget::PrefCheckButton _symbolic_icons;