From de29e57930518fca827e06d7bd7e7cd0a5c70c6b Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Fri, 31 Jul 2026 16:24:33 +0200 Subject: [PATCH] Sessions UI: fix grouped chart layout and legend styling (#32338) --- assets/js/colors.ts | 3 +++ assets/js/components/Sessions/AvgCostGroupedChart.vue | 6 +++--- assets/js/components/Sessions/CostGroupedChart.vue | 6 +++--- assets/js/components/Sessions/EnergyGroupedChart.vue | 6 +++--- assets/js/components/Sessions/LegendList.vue | 4 ++-- assets/js/components/Sessions/SessionTable.vue | 2 +- assets/js/components/Sessions/SolarGroupedChart.vue | 6 +++--- assets/js/components/Sessions/SolarYearChart.vue | 2 +- assets/js/views/Sessions.vue | 6 +++--- 9 files changed, 22 insertions(+), 19 deletions(-) diff --git a/assets/js/colors.ts b/assets/js/colors.ts index d9425d322..ffa039a14 100644 --- a/assets/js/colors.ts +++ b/assets/js/colors.ts @@ -27,6 +27,7 @@ const colors: { temperature: string | null; export: string | null; background: string | null; + box: string | null; light: string | null; selfPalette: string[]; palette: string[]; @@ -44,6 +45,7 @@ const colors: { temperature: null, export: null, background: null, + box: null, light: null, selfPalette: ["#0FDE41", "#FFBD2F", "#FD6158", "#03C1EF", "#0F662D", "#FF922E"], palette: [ @@ -152,6 +154,7 @@ export function updateCssColors() { colors.temperature = style.getPropertyValue("--evcc-temperature"); colors.export = style.getPropertyValue("--evcc-export-contrast"); colors.background = style.getPropertyValue("--evcc-background"); + colors.box = style.getPropertyValue("--evcc-box"); colors.pricePerKWh = style.getPropertyValue("--bs-gray-medium"); colors.co2PerKWh = style.getPropertyValue("--bs-gray-medium"); colors.light = style.getPropertyValue("--bs-gray-light"); diff --git a/assets/js/components/Sessions/AvgCostGroupedChart.vue b/assets/js/components/Sessions/AvgCostGroupedChart.vue index a62e8446f..814572f0c 100644 --- a/assets/js/components/Sessions/AvgCostGroupedChart.vue +++ b/assets/js/components/Sessions/AvgCostGroupedChart.vue @@ -1,9 +1,9 @@