Tunal/docs/PROGRESS.md
astar76 7f94978bfb S002: portal appearance reader, watcher and Material palettes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 09:33:29 -06:00

1.9 KiB

Progress

One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.

S001 — Workspace, crates, README and feature map

  • Done: workspace (resolver 3, edition 2024, GPL-3.0-or-later); crates tunal (bin, Slint window "Tunal" with assets/tunal.png) and tunal-core/-theme/-dirmeta/-elevate/-thumbs/-tags/-player/-devices/-net (crate doc only); font + license in assets/fonts/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].ttf; FEATURES.md (plan-id tables, updated by later plans); README.md; reference app cloned to /home/astar76/Projects/Tunal-reference.
  • Verified: cargo build, clippy -D warnings, fmt --check, fc-query font family, grep for forbidden names empty, window smoke run 5 s no errors.
  • Not done: nothing. Tracker item texts for S001 were shortened when syncing.
  • Later: —

S002 — Portal theme and Material schemes

  • Done: tunal-theme with read() -> Appearance, watch(F: Fn(Appearance) + Send + 'static) -> JoinHandle<()>, Appearance { accent: Option<Accent>, scheme: ColorScheme, animations: Option<bool> } (+ seed(), palette()), Accent { red, green, blue: f64 } (rgb() -> 0xRRGGBB), Palettes::from_seed(u32) -> { light, dark: Palette }, Palette = 34 M3 roles as ARGB u32. Fallback seed FALLBACK_SEED = 0x3F6FB5 (D-022). zbus 5.19 blocking-api + async-io, no tokio. Example dump (--watch prints changes).
  • Verified: build, clippy -D warnings, fmt --check; dump accent = busctl (0.901961, 0.176471, 0.258824); Read fallback forced once; no bus (unix:path=/nonexistent) and bare bus without portal → one stderr line, defaults, exit 0; watcher against a fake portal (private bus) reported accent, scheme and animations changes, ignored other namespaces, out-of-range accent → None.
  • Not done: nothing. Missing-setting warnings are eprintln! lines prefixed tunal-theme: (no logging crate).
  • Later: —

Later