Skip to main content

Module theme

Module theme 

Source
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§

ThemeVariant
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)