Files
qbz/crates/qbz-slint/ui
vicrodh 8c8871be2a feat(qbz-slint): add Rust-driven Theme global (dumb sink)
Replace the per-token `ThemeState.mode` ternary system with a single
`ThemeColors` struct (`Theme.c`) that Rust pushes from the qbz-theme registry.

- New `foundation/theme.slint`: `ThemeColors` struct (kebab-case fields in
  lockstep with `qbz_theme::ThemeColors`) + `Theme` global of thin aliases.
  Every existing token name is preserved (surface-*, text-*, accent-*,
  border-subtle/muted, favorite, card-shadow, alpha-08/10/12/18/55/65/70/75)
  so the ~1900 call sites compile verbatim; the danger/warning/success
  families, border-strong, bg-hover, focus-ring and the full 24-tier alpha
  superset are added.
- System mode preserved: `Theme.is-system` (set by Rust) falls the
  System-overridden tokens back to the std-widgets Palette exactly as the old
  `mode == 3` branch did; all other themes read `c.*`.
- `semantic-colors.slint` becomes a re-export of `Theme`/`ThemeColors` from
  `theme.slint`, so the 146 existing imports keep resolving.
- The `Theme.c` default is seeded with the Dark palette so the live `.slint`
  preview renders without a Rust feed.

cc
2026-06-20 14:51:18 -06:00
..