Skip to main content

Module user

Module user 

Source
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§

RegisteredTheme
One theme in the registry, paired with its source for themes list output.
ThemeRegistry
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 — matches docs/specs/theming.md §Edge cases. Files are processed in filename-sorted order, so “first” means alphabetically first.

Enums§

ThemeParseError
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.
ThemeSource
Where a registered theme came from. User files carry their path so diagnostics can point the user at the right TOML to edit.