Expand description
§User Configuration Format
This module defines the user-facing configuration format that matches the
TOML structure users write. It provides a bridge between the user’s config
file and the internal Theme representation.
§Design Rationale
Users write configuration in a hierarchical, intuitive format:
[appearance]
theme = "dark"
accent = "#ff6b6b"
font_family = "Inter"
[bar]
height = 40
position = "top"But the internal Theme struct has a different structure optimized for
the domain model. This module handles the transformation.
§Transformation Flow
TOML file
↓
[parse to UserConfig]
↓
UserConfig::into_theme()
↓
Theme (validated, ready for use)Structs§
- Appearance
Config - Appearance configuration section.
- User
BarConfig - Bar/panel configuration section.
- User
Config - User-facing configuration format matching the TOML structure.
- User
Radius Config - Border radius configuration section.