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. The active Omarchy theme’s colors.toml
  3. One Dark fallback

Omarchy applies a theme into ~/.local/state/omarchy/current/theme; the ~/.config/omarchy/current/theme location this port originally read is the older layout and stays as a 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).