Skip to main content

Module theme

Module theme 

Source
Expand description

Theme system — loads colour palettes from YAML and exposes typed accessors.

Resolution order for a theme named <name>:

  1. .oo/themes/<name>.yaml (project-local override)
  2. ~/.config/oo/themes/<name>.yaml (global user override)
  3. Built-in embedded dark / light (compiled-in via include_str!)

Non-base themes may declare extends: dark or extends: light; missing keys are then inherited from the parent. Base themes must define every key.

Per-key overrides can be set in settings under theme.colors.<field>.

Structs§

Theme
Resolved colour palette. All colours are stored as ratatui::style::Color.

Functions§

parse_color
Parse a colour string into a ratatui::style::Color.