changeset 4013:e9ab7c53aa19

fix avail_fwd pdf coloring of labels
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 19 Jul 2019 13:07:11 +0200
parents 7a0f56f9d0dd
children 6036f8f76f76
files client/src/components/fairway/AvailableFairwayDepth.vue
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Fri Jul 19 12:59:11 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Fri Jul 19 13:07:11 2019 +0200
@@ -278,8 +278,8 @@
         this.pdf.doc.roundedRect(x, y, 10, 4, 1.5, 1.5, "FD");
         this.pdf.doc.text(this.legend[0], x + 12, y + 3);
 
-        this.pdf.doc.setDrawColor(this.$options.COLORS.REST[0]);
-        this.pdf.doc.setFillColor(this.$options.COLORS.REST[0]);
+        this.pdf.doc.setDrawColor(this.$options.COLORS.HIGHEST);
+        this.pdf.doc.setFillColor(this.$options.COLORS.HIGHEST);
         this.pdf.doc.roundedRect(x, y + 5, 10, 4, 1.5, 1.5, "FD");
         this.pdf.doc.text(this.legend[1], x + 12, y + 8);
 
@@ -288,8 +288,8 @@
         this.pdf.doc.roundedRect(x, y + 10, 10, 4, 1.5, 1.5, "FD");
         this.pdf.doc.text(this.legend[2], x + 12, y + 13);
 
-        this.pdf.doc.setDrawColor(this.$options.COLORS.HIGHEST);
-        this.pdf.doc.setFillColor(this.$options.COLORS.HIGHEST);
+        this.pdf.doc.setDrawColor(this.$options.COLORS.REST[0]);
+        this.pdf.doc.setFillColor(this.$options.COLORS.REST[0]);
         this.pdf.doc.roundedRect(x, y + 15, 10, 4, 1.5, 1.5, "FD");
         this.pdf.doc.text(this.legend[3], x + 12, y + 18);
       } else {
@@ -303,6 +303,11 @@
         this.pdf.doc.setFillColor(this.$options.COLORS.HIGHEST);
         this.pdf.doc.roundedRect(x, y + 5, 10, 4, 1.5, 1.5, "FD");
         this.pdf.doc.text(this.legend[1], x + 12, y + 8);
+
+        this.pdf.doc.setDrawColor(this.$options.COLORS.REST[1]);
+        this.pdf.doc.setFillColor(this.$options.COLORS.REST[1]);
+        this.pdf.doc.roundedRect(x, y + 10, 10, 4, 1.5, 1.5, "FD");
+        this.pdf.doc.text(this.legend[2], x + 12, y + 13);
       }
     },
     legendStyle(index) {