summaryrefslogtreecommitdiffstats
path: root/qt-ui/templateedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/templateedit.cpp')
-rw-r--r--qt-ui/templateedit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp
index 6df11ea79..94ed276b5 100644
--- a/qt-ui/templateedit.cpp
+++ b/qt-ui/templateedit.cpp
@@ -92,6 +92,9 @@ void TemplateEdit::on_colorpalette_currentIndexChanged(int index)
{
newTemplateOptions.color_palette_index = index;
switch (newTemplateOptions.color_palette_index) {
+ case SSRF_COLORS: // subsurface derived default colors
+ newTemplateOptions.color_palette = ssrf_colors;
+ break;
case ALMOND: // almond
newTemplateOptions.color_palette = almond_colors;
break;
@@ -147,6 +150,9 @@ void TemplateEdit::colorSelect(QAbstractButton *button)
{
// reset custom colors palette
switch (newTemplateOptions.color_palette_index) {
+ case SSRF_COLORS: // subsurface derived default colors
+ newTemplateOptions.color_palette = ssrf_colors;
+ break;
case ALMOND: // almond
newTemplateOptions.color_palette = almond_colors;
custom_colors = newTemplateOptions.color_palette;