From 0990bd97843952ae993004d5d2a32c71f8cdb9dc Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sat, 1 Aug 2026 13:00:13 +0200 Subject: [PATCH] 0.313 backport: Sessions UI: fix grouped chart layout and legend styling (#32383) --- 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 @@