From 33655a71b78c0f74835ce375de850b72b6d6feb4 Mon Sep 17 00:00:00 2001 From: Pazekal90 Date: Fri, 3 Jan 2020 17:25:33 +0100 Subject: [PATCH] PowerAmount Color changed to a better readable color in dark mode. Signed-off-by: Pazekal90 --- src/components/Dashboard.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index 80c8341..3348d19 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -279,7 +279,14 @@ return (Math.abs(this.syncData.dc_battery_power) || 0).toFixed(2); }, powerAmountColor() { - if (this.syncData.charging) return 'green'; + if(this.syncData.charging) { + if(storage.getValue('darkMode', false) == true) { + return 'chartreuse'; + } + else { + return 'green'; + } + } return parseFloat(this.syncData.dc_battery_power) <= 0 ? '#009688' : 'red'; }, chargingTimeLeft() {