summaryrefslogtreecommitdiffstats
path: root/qt-ui/templateedit.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-26 19:13:23 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-28 11:39:19 +0300
commitd41d79b549cdfb0ff3c785eae09a504a46fb4b96 (patch)
tree49ab30d6e1b3dc9460a323b9b09e9fee4097e198 /qt-ui/templateedit.cpp
parent6319f0efba30d0c6a3831f5bb9a072aede4690ab (diff)
downloadsubsurface-d41d79b549cdfb0ff3c785eae09a504a46fb4b96.tar.gz
Printing: add the "Shades of blue" color theme
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/templateedit.cpp')
-rw-r--r--qt-ui/templateedit.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp
index de280f7a8..c26740506 100644
--- a/qt-ui/templateedit.cpp
+++ b/qt-ui/templateedit.cpp
@@ -95,7 +95,10 @@ void TemplateEdit::on_colorpalette_currentIndexChanged(int index)
case 0: // almond
newTemplateOptions.color_palette = almond_colors;
break;
- case 1: // custom
+ case 1: // blueshades
+ newTemplateOptions.color_palette = blueshades_colors;
+ break;
+ case 2: // custom
newTemplateOptions.color_palette = custom_colors;
break;
}
@@ -115,7 +118,7 @@ void TemplateEdit::saveSettings()
printOptions->p_template = "custom.html";
TemplateLayout::writeTemplate("custom.html", ui->plainTextEdit->toPlainText());
}
- if (templateOptions->color_palette_index == 1) {
+ if (templateOptions->color_palette_index == 2) {
custom_colors = templateOptions->color_palette;
}
}
@@ -148,6 +151,10 @@ void TemplateEdit::colorSelect(QAbstractButton *button)
newTemplateOptions.color_palette = almond_colors;
custom_colors = newTemplateOptions.color_palette;
break;
+ case 1: // blueshades
+ newTemplateOptions.color_palette = blueshades_colors;
+ custom_colors = newTemplateOptions.color_palette;
+ break;
}
//change selected color
@@ -174,6 +181,6 @@ void TemplateEdit::colorSelect(QAbstractButton *button)
newTemplateOptions.color_palette.color5 = color;
break;
}
- newTemplateOptions.color_palette_index = 1;
+ newTemplateOptions.color_palette_index = 2;
updatePreview();
}