bread-ecosystem/bread-theme
Breadway bb4e1834d5 bread-theme: test that every shipped theme actually resolves
The gap that let the shell-theme breadbar ship half-verified: a builtin
theme.toml can parse in isolation but fail `resolve_theme` at runtime (a
slot name the manifest no longer knows, a field rename, a broken
`extends`), and `load()` silently falls back to liquid-motion. breadbar
has no tracing subscriber so that fallback's `warn!` goes nowhere — the
shell just quietly ignores `active = "spotlight"`.

Three tests over `builtin::ALL` (not a hand-maintained id list):
- every_builtin_theme_resolves: load_named() succeeds, id/name match, has
  window anchors
- active_theme_id_env_selects_each_builtin_and_never_falls_back: BREAD_SHELL_THEME
  set to each id → load() returns that id, not the fallback
- unknown_theme_id_falls_back_to_liquid_motion: the fallback still works

Adding a fifth builtin now needs its theme.toml to be loadable, not just
parseable.
2026-09-01 14:36:31 +08:00
..
assets/shell shell themes: add Daylight — bottom-anchored, segmented, light builtin 2026-08-31 15:15:36 +08:00
src bread-theme: test that every shipped theme actually resolves 2026-09-01 14:36:31 +08:00
bakery.toml Fix audit findings: bakery index signing, artifact checksums, stale theme docs 2026-07-17 03:37:51 +08:00
Cargo.toml Add bread_theme::shell manifest system (Phase 1) 2026-08-31 15:14:44 +08:00
CHANGELOG.md Add per-output palettes and window-scoped theme binding 2026-08-16 13:20:00 +08:00