bread-ecosystem/bread-theme/src
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
..
bin bread-theme/bread-utils: XDG env hardening and safer temp-file writes 2026-08-31 15:37:52 +08:00
shell bread-theme: test that every shipped theme actually resolves 2026-09-01 14:36:31 +08:00
adw.rs bread-theme: add libadwaita components + fix slider/chip theming gaps 2026-07-29 22:45:18 +08:00
anim.rs bread-theme: clamp spring_to's interpolated value to [from,to] 2026-08-31 15:15:36 +08:00
gtk.rs Clear clippy 1.97 lints across bread-theme, bread-utils, bread-polkit 2026-08-31 15:20:15 +08:00
layerrules.rs bread-theme/bread-utils: XDG env hardening and safer temp-file writes 2026-08-31 15:37:52 +08:00
lib.rs Clear clippy 1.97 lints across bread-theme, bread-utils, bread-polkit 2026-08-31 15:20:15 +08:00
output.rs bread-theme/bread-utils: XDG env hardening and safer temp-file writes 2026-08-31 15:37:52 +08:00
palette.rs Add per-output palettes and window-scoped theme binding 2026-08-16 13:20:00 +08:00