summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-06-19 16:37:13 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-07-08 21:04:14 +0000
commit17187618d32ef44dfde4aa192f2d33a135c28d07 (patch)
tree5a982cb9cbc71ba6bd8b5fdf62a591adeefed93a /src/ui/dialog
parentAllow good render of multiples stylesheets (diff)
downloadinkscape-17187618d32ef44dfde4aa192f2d33a135c28d07.tar.gz
inkscape-17187618d32ef44dfde4aa192f2d33a135c28d07.zip
add improvements to color handling
Diffstat (limited to 'src/ui/dialog')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 9b8e35384..b81f97cb7 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -684,9 +684,19 @@ void InkscapePreferences::symbolicCustomColorsReset()
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
Glib::ustring themeiconname = prefs->getString("/theme/iconTheme");
- prefs->setInt("/theme/" + themeiconname + "/symbolicSuccessColor", 0);
- prefs->setInt("/theme/" + themeiconname + "/symbolicErrorColor", 0);
- prefs->setInt("/theme/" + themeiconname + "/symbolicWaringColor", 0);
+ int colorset = 0x2E3436ff;
+ int colorsetsuccess = 0x4AD589ff;
+ int colorsetwarning = 0xF57900ff;
+ int colorseterror = 0xcc0000ff;
+ INKSCAPE.get_higlight_colors(colorset, colorsetsuccess, colorsetwarning, colorseterror);
+ _symbolic_color.setRgba32(colorset);
+ _symbolic_success_color.setRgba32(colorsetsuccess);
+ _symbolic_warning_color.setRgba32(colorsetwarning);
+ _symbolic_error_color.setRgba32(colorseterror);
+ prefs->setInt("/theme/" + themeiconname + "/symbolicSuccessColor",colorset);
+ prefs->setInt("/theme/" + themeiconname + "/symbolicColor", colorsetsuccess);
+ prefs->setInt("/theme/" + themeiconname + "/symbolicErrorColor", colorsetwarning);
+ prefs->setInt("/theme/" + themeiconname + "/symbolicWaringColor", colorseterror);
symbolicCustomColors();
}