Expand description
Theme system for TUI monitor
Loads JSON themes (dark/light) and applies styles to ratatui widgets. Mirrors pi’s theme handling for consistent UI.
Structs§
- Theme
- Resolved theme with ratatui colors
Enums§
- Theme
Variant - Available theme variants
Constants§
- ACCENT
- Accent and status colors
- BG_
PRIMARY - Background colors
- BG_
SECONDARY - BG_
TERMINAL - BORDER_
ACTIVE - BORDER_
DEFAULT - Border colors
- ERROR
- FAILED_
VALIDATION_ RED - RALPH_
ORANGE - STATUS_
COMPLETED - STATUS_
FAILED - STATUS_
RUNNING - STATUS_
STARTING - Status-specific colors
- SUCCESS
- SWARM_
PURPLE - Special colors for specific UI elements
- TEXT_
MUTED - TEXT_
PRIMARY - Text colors
- TEXT_
TERMINAL
Functions§
- accent
- bg_
primary - bg_
secondary - bg_
terminal - border_
active - border_
default - error
- failed_
validation_ red - init_
theme - Initialize the global theme (call once at startup)
- ralph_
orange - status_
completed - status_
failed - status_
running - status_
starting - success
- swarm_
purple - text_
muted - text_
primary - text_
terminal - theme
- Get the current theme (initializes to dark if not set)