mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
The warn band was drawn in colorScheme.tertiary, which is whatever the palette seed produces: olive under the amber theme, where the healthy band (primary) is burnt orange, so a warning read as decoration and healthy read as a warning. The warn band now uses fixed light/dark tokens, and the percentage text is tinted at warn and critical instead of the level living in the gauge alone. Values are derived against the composited backgrounds the cards actually draw on: the gauge Surface at 4dp tonal elevation, and the same surface at alpha 0.7 that a card without live data uses. Measuring against raw surface would have admitted values below 3:1 on screen. The tokens are resolved from the theme mode CapodTheme already computed, not from isSystemInDarkTheme(), so an in-app dark override on a light system does not pick the light tokens.