Skip to main content

Crate hotl_theme

Crate hotl_theme 

Source
Expand description

The hotl theme: config model, named presets, and (feature “ratatui”) the resolved terminal palette. One crate owns the pipeline from config string to Color; both the watch dashboard and the execute TUI consume it.

Structs§

Theme
ThemeConfig
Theme selection: an optional preset base palette plus optional per-slot color overrides. Absent fields fall back to the preset (or default).

Enums§

Density
Transcript spacing. A terminal can’t change point size, so “roomier” is expressed as vertical space between turns plus a left gutter the role spine lives in. Comfortable is the default; Compact is the pre-0.5 edge-to-edge look.

Functions§

parse_hex
Parse a #rrggbb (or rrggbb) hex color into its RGB bytes. Returns None for any string that isn’t exactly six hex digits — the single source of truth for what counts as a valid color, shared by config validation and the TUI renderer.
preset
Look up a built-in palette by name. None if the name is unknown.