Skip to main content

Module theme

Module theme 

Source
Expand description

Color palette resolution.

Three-layer precedence (matches claudebar:163-167):

  1. CLI overrides (passed via Theme::with_overrides)
  2. Omarchy theme at ~/.config/omarchy/current/theme/colors.toml
  3. One Dark fallback

The Omarchy file format is key = "value" lines (claudebar:115-131 uses a regex that tolerates comments + blank lines + extra whitespace). We use toml::from_str for the same effect — Omarchy themes are valid TOML.

Structs§

Theme
Full resolved palette used by the widget tooltip and the TUI.

Functions§

hex_blend
Average two #RRGGBB strings into a midpoint color. Returns None if either input isn’t parseable. Mirrors claudebar’s hex_blend() (claudebar:105-110).