App 2.24.0: Overview styles Sci-fi, Cartoon and Blueprint

Sci-fi: a starship console with elbow frames, pill labels and block
graphs, red alert below 20 %. Cartoon: comic panels, a battery with a
face, a springy speedometer and sound words for power. Blueprint: a
top-view drawing with the battery hatched to the charge, tyre pressures
on leader lines, power as a force arrow and a title block. Styles are
now mapped to panes in a table. Emulator only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
2026-10-24 20:08:24 +02:00
co-authored by Claude Opus 5.5
parent 2879c43e26
commit 5fb367d7cd
14 changed files with 926 additions and 20 deletions
+19
View File
@@ -131,6 +131,25 @@ tyre pressures, GPS (lat, lon, elevation, heading) and the is_* flags. It does *
confirmed car facts, app structure, UI conventions, build/test/ship, documents. It replaces
upstream's EVABRPUploader text. The test emulator is now in the flake: `nix run .#car-emulator`
(Android 9 AOSP at 1920×720, 160 dpi; the car build installs as the system user — checked).
- 2026-10-24 — App 2.24.0 (branch `styles-retro-future`): three more Overview styles, each one
Canvas view fed the shared `ClusterValues` (now with the tyre pressures, formatted in the
chosen unit). **Sci-fi** (`SciFiView`): a starship console — rounded elbow frames in orange
and lilac, pill labels, condensed capitals; velocity large, power as blocks (regeneration
blue), rows for reserves, range, efficiency, since start, trip and climate, the reserves as a
stack of blocks, gears as blocks in the frame; below 20 % the frames turn red ("red alert").
**Cartoon** (`CartoonView`): comic panels with ink outlines and hard shadows on night blue; a
battery with a face (happy, unsure, worried and sweating), a speedometer whose needle springs
into place (animated only until it settles, only on screen), the speed in a speech bubble,
the gear on a sticker, a "zap-o-meter" with a sound word (PSST, PURR, VROOM, ZOOM!,
RECHARGE!), stats on pills. **Blueprint** (`BlueprintView`): a top-view drawing of the car on a
gridded navy sheet — the battery hatched as far as it is charged, leader lines to each tyre's
pressure, power as a force arrow (dashed and reversed while regenerating), range and trip as
dimension lines, the cabin setpoint as a note, and a title block with speed, power, gear,
usage, odometer and time. Palettes `scifi_*`, `cartoon_*`, `blueprint_*` in colors.xml.
`MainActivity` now maps each style to its pane in a table (`stylePanes`); the new panes are
built in code (`drawnPane`). Checked on the emulator with sample values in a throwaway build
(`screenshots/nilsmg4-2.24.0-scifi.png`, `-cartoon.png`, `-blueprint.png`) and without data
through the real setting; no crash. Not tried on the car.
- 2026-10-24 — App 2.23.1 (branch `styles-retro-future`): "Retro (accent colour)", the Retro
style in the chosen paint colour — display in `evAccent`, labels in `evAccentLight`;
regeneration stays green, a low battery turns amber (not red, so it never looks like Dynamic