From bdf2932bf37bda8234b16ae69d41a5c2a0a0d63c Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 20 Mar 2026 15:46:03 +0100 Subject: [PATCH] fitness: theme-reactive chart colors, bar outline fix, and stats label polish - Stats and exercise pages: chart colors adapt to light/dark theme reactively - FitnessChart: remove bar outline (borderWidth 0 for bar type) - Stats: workouts icon/card use --color-primary, plural-aware label, rename labels --- .../components/fitness/FitnessChart.svelte | 2 +- .../fitness/exercises/[id]/+page.svelte | 25 ++++++++++- src/routes/fitness/stats/+page.svelte | 44 ++++++++++++++----- 3 files changed, 57 insertions(+), 14 deletions(-) diff --git a/src/lib/components/fitness/FitnessChart.svelte b/src/lib/components/fitness/FitnessChart.svelte index 3ad829e..852898b 100644 --- a/src/lib/components/fitness/FitnessChart.svelte +++ b/src/lib/components/fitness/FitnessChart.svelte @@ -54,7 +54,7 @@ backgroundColor: ds.backgroundColor ?? (type === 'bar' ? (nordColors[i % nordColors.length]) : 'transparent'), - borderWidth: ds.borderWidth ?? (type === 'line' ? 2 : 1), + borderWidth: ds.borderWidth ?? (type === 'line' ? 2 : 0), pointRadius: ds.pointRadius ?? (type === 'line' ? 3 : 0), pointBackgroundColor: ds.pointBackgroundColor || ds.borderColor || nordColors[i % nordColors.length], tension: ds.tension ?? 0.3, diff --git a/src/routes/fitness/exercises/[id]/+page.svelte b/src/routes/fitness/exercises/[id]/+page.svelte index a47166a..d73a075 100644 --- a/src/routes/fitness/exercises/[id]/+page.svelte +++ b/src/routes/fitness/exercises/[id]/+page.svelte @@ -1,9 +1,30 @@