Module user_config

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

AppearanceConfig
Appearance configuration section.
UserBarConfig
Bar/panel configuration section.
UserConfig
User-facing configuration format matching the TOML structure.
UserRadiusConfig
Border radius configuration section.

Functions§

default_bar_height 🔒
default_bar_position 🔒
default_theme 🔒