summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index c63bc854c..1418f5c3b 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -386,14 +386,21 @@ Application::add_gtk_css()
int colorset_inverse = colorset ^ 0xffffff00;
gchar colornamed_inverse[64];
sp_svg_write_color(colornamed_inverse, sizeof(colornamed_inverse), colorset_inverse);
- css_str += "*{ -gtk-icon-style: symbolic;}";
- css_str += "image{ color:";
- css_str += colornamed;
- css_str += ";}";
- css_str += "#iconinverse{ color:";
- css_str += colornamed_inverse;
- css_str += ";}";
- css_str += "#iconregular{ -gtk-icon-style: regular;}";
+ if (prefs->getBool("/theme/symbolicIconsDefaultColor", true)) {
+ css_str += "*{ -gtk-icon-style: symbolic;}";
+ css_str += "image{ color: @theme_fg_color}";
+ css_str += "iconinverse{ color: @theme_bg_color;}";
+ css_str += "iconregular{ -gtk-icon-style: regular;}";
+ } else {
+ css_str += "*{ -gtk-icon-style: symbolic;}";
+ css_str += "image{ color:";
+ css_str += colornamed;
+ css_str += ";}";
+ css_str += "#iconinverse{ color:";
+ css_str += colornamed_inverse;
+ css_str += ";}";
+ css_str += "#iconregular{ -gtk-icon-style: regular;}";
+ }
} else {
css_str += "*{-gtk-icon-style: regular;}";
}