diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-28 10:48:29 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-28 10:48:29 -0700 |
commit | be47ce624170cfce7e9763e5530f0be3555c187d (patch) | |
tree | 32bbcff75998e9187cb7d0969e6dfa2a740e16a5 /qt-ui/printdialog.cpp | |
parent | 921041163be940d22ecffa5dc544add97c0bc0e1 (diff) | |
download | subsurface-be47ce624170cfce7e9763e5530f0be3555c187d.tar.gz |
Printing: add new default color scheme
This is based on the Subusrface logo colors, keeping the hue and modifying
the saturation and value in order to get what to me looks like a fairly
pleasant color setup.
This is an attempt to come up with a good default. By all means, this is
supposed to be a starting point to make it better, not a decision on what
the colors should be. I would however claim that they are better than the
previously available options :-)
I like the idea of basing this on our existing colors - but even that is
up for modification if someone has a better proposal.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printdialog.cpp')
-rw-r--r-- | qt-ui/printdialog.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index 25c102201..6c50ae99b 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -12,11 +12,16 @@ #define SETTINGS_GROUP "PrintDialog" -template_options::color_palette_struct almond_colors, blueshades_colors, custom_colors; +template_options::color_palette_struct ssrf_colors, almond_colors, blueshades_colors, custom_colors; PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) { // initialize const colors + ssrf_colors.color1 = QColor::fromRgb(0xef, 0xf7, 0xff); + ssrf_colors.color2 = QColor::fromRgb(0xa6, 0xbc, 0xd7); + ssrf_colors.color3 = QColor::fromRgb(0x34, 0x65, 0xa4); + ssrf_colors.color4 = QColor::fromRgb(0x20, 0x4a, 0x87); + ssrf_colors.color5 = QColor::fromRgb(0x17, 0x37, 0x64); almond_colors.color1 = QColor::fromRgb(243, 234, 207); almond_colors.color2 = QColor::fromRgb(253, 204, 156); almond_colors.color3 = QColor::fromRgb(136, 160, 150); @@ -39,9 +44,9 @@ PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f printOptions.type = print_options::DIVELIST; templateOptions.font_index = 0; templateOptions.font_size = 9; - templateOptions.color_palette_index = ALMOND; + templateOptions.color_palette_index = SSRF_COLORS; templateOptions.line_spacing = 1; - custom_colors = almond_colors; + custom_colors = ssrf_colors; } else { s.beginGroup(SETTINGS_GROUP); printOptions.type = (print_options::print_type)s.value("type").toInt(); @@ -70,6 +75,9 @@ PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f } switch (templateOptions.color_palette_index) { + case SSRF_COLORS: // default Subsurface derived colors + templateOptions.color_palette = ssrf_colors; + break; case ALMOND: // almond templateOptions.color_palette = almond_colors; break; |