summaryrefslogtreecommitdiffstats
path: root/qt-ui/printdialog.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-08-07 09:54:09 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-08-15 15:02:30 +0300
commit1dbe10fe278650430beca638976ea7df3b5c76fd (patch)
tree012d141cf23cc0c410a2894ce040c0402e2e1d8b /qt-ui/printdialog.cpp
parent1a2f154cf49041a223e5801328beb68cb8b42442 (diff)
downloadsubsurface-1dbe10fe278650430beca638976ea7df3b5c76fd.tar.gz
Printing: add another color in color palettes
Add another color 'Table cells 2' to the color palette, make all the backgrounds solid white by default. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Diffstat (limited to 'qt-ui/printdialog.cpp')
-rw-r--r--qt-ui/printdialog.cpp33
1 files changed, 18 insertions, 15 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp
index 08fdf7064..0095597fd 100644
--- a/qt-ui/printdialog.cpp
+++ b/qt-ui/printdialog.cpp
@@ -17,21 +17,24 @@ template_options::color_palette_struct ssrf_colors, almond_colors, blueshades_co
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);
- 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);
+ ssrf_colors.color1 = QColor::fromRgb(0xff, 0xff, 0xff);
+ ssrf_colors.color2 = QColor::fromRgb(0xef, 0xf7, 0xff);
+ ssrf_colors.color3 = QColor::fromRgb(0xa6, 0xbc, 0xd7);
+ ssrf_colors.color4 = QColor::fromRgb(0x34, 0x65, 0xa4);
+ ssrf_colors.color5 = QColor::fromRgb(0x20, 0x4a, 0x87);
+ ssrf_colors.color6 = QColor::fromRgb(0x17, 0x37, 0x64);
+ almond_colors.color1 = QColor::fromRgb(255, 255, 255);
+ almond_colors.color2 = QColor::fromRgb(243, 234, 207);
+ almond_colors.color3 = QColor::fromRgb(253, 204, 156);
+ almond_colors.color4 = QColor::fromRgb(136, 160, 150);
+ almond_colors.color5 = QColor::fromRgb(187, 171, 139);
+ almond_colors.color6 = QColor::fromRgb(239, 130, 117);
+ blueshades_colors.color1 = QColor::fromRgb(255, 255, 255);
+ blueshades_colors.color2 = QColor::fromRgb(182, 192, 206);
+ blueshades_colors.color3 = QColor::fromRgb(142, 152, 166);
+ blueshades_colors.color4 = QColor::fromRgb(31, 49, 75);
+ blueshades_colors.color5 = QColor::fromRgb(21, 45, 84);
+ blueshades_colors.color6 = QColor::fromRgb(5, 25, 56);
// check if the options were previously stored in the settings; if not use some defaults.
QSettings s;