Expand description
User-authored theme TOML loading. Parses files from
~/.config/linesmith/themes/*.toml per docs/specs/theming.md
§Theme file format and merges them with the compiled-in themes
into a ThemeRegistry. The registry is the single source of
truth the driver consults for theme = "..." resolution.
Structs§
- Registered
Theme - One theme in the registry, paired with its source for
themes listoutput. - Theme
Registry - Built-in + user themes combined. User themes override built-ins
of the same name (with a warning). When two user files declare
the same
name, the first one loaded wins and the later one is warned + skipped — matchesdocs/specs/theming.md§Edge cases. Files are processed in filename-sorted order, so “first” means alphabetically first.
Enums§
- Theme
Parse Error - Failure modes when converting a theme TOML file into a
Theme. Carries enough detail that the user can find the typo without rerunning with a debugger. - Theme
Source - Where a registered theme came from. User files carry their path so diagnostics can point the user at the right TOML to edit.