aboutsummaryrefslogtreecommitdiffstats
path: root/templatelayout.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-13 11:19:03 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-20 15:28:34 +0300
commitb67e06ee7b059ccf401a8f6a441ed455260adda1 (patch)
tree9ea53707fd46d7aa6e139f0a833fa217450026b9 /templatelayout.h
parented09b80c121764aba5e26b798b09f80f7abdd228 (diff)
downloadsubsurface-b67e06ee7b059ccf401a8f6a441ed455260adda1.tar.gz
Printing: export color settings to grantlee
Export color palette selected to grantlee backend. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'templatelayout.h')
-rw-r--r--templatelayout.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/templatelayout.h b/templatelayout.h
index 622f7d7a0..85a4699da 100644
--- a/templatelayout.h
+++ b/templatelayout.h
@@ -123,6 +123,16 @@ if (property == "font") {
return object.font_size / 9.0;
} else if (property == "line_spacing") {
return object.line_spacing;
+} else if (property == "color1") {
+ return object.color_palette.color1.name();
+} else if (property == "color2") {
+ return object.color_palette.color2.name();
+} else if (property == "color3") {
+ return object.color_palette.color3.name();
+} else if (property == "color4") {
+ return object.color_palette.color4.name();
+} else if (property == "color5") {
+ return object.color_palette.color5.name();
}
GRANTLEE_END_LOOKUP