summaryrefslogtreecommitdiffstats
path: root/qt-ui/printdialog.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/printdialog.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/printdialog.cpp')
-rw-r--r--qt-ui/printdialog.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp
index 8717766a1..d5a16df11 100644
--- a/qt-ui/printdialog.cpp
+++ b/qt-ui/printdialog.cpp
@@ -12,7 +12,7 @@
#define SETTINGS_GROUP "PrintDialog"
-template_options::color_palette_struct almond_colors, custom_colors;
+template_options::color_palette_struct almond_colors, blueshades_colors, custom_colors;
PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
{
@@ -22,6 +22,11 @@ PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f
almond_colors.color3 = QColor::fromRgb(136, 160, 150);
almond_colors.color4 = QColor::fromRgb(187, 171, 139);
almond_colors.color5 = QColor::fromRgb(239, 130, 117);
+ blueshades_colors.color1 = QColor::fromRgb(182, 192, 206);
+ blueshades_colors.color2 = QColor::fromRgb(142, 152, 166);
+ blueshades_colors.color3 = QColor::fromRgb(31, 49, 75);
+ blueshades_colors.color4 = QColor::fromRgb(21, 45, 84);
+ blueshades_colors.color5 = QColor::fromRgb(5, 25, 56);
// check if the options were previously stored in the settings; if not use some defaults.
QSettings s;
@@ -68,7 +73,10 @@ PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f
case 0: // almond
templateOptions.color_palette = almond_colors;
break;
- case 1: // custom
+ case 1: // blueshades
+ templateOptions.color_palette = blueshades_colors;
+ break;
+ case 2: // custom
templateOptions.color_palette = custom_colors;
break;
}