pub struct Theme {
pub primary: Color,
pub secondary: Color,
pub accent: Color,
pub text: Color,
pub text_dim: Color,
pub border: Color,
pub bg: Color,
pub success: Color,
pub warning: Color,
pub error: Color,
pub selected_bg: Color,
pub selected_fg: Color,
}Expand description
A color theme that flows through all widgets automatically.
Construct with Theme::dark() or Theme::light(), or build a custom
theme by filling in the fields directly. Pass the theme via crate::RunConfig
and every widget will pick up the colors without any extra wiring.
Fields§
§primary: ColorPrimary accent color, used for focused borders and highlights.
secondary: ColorSecondary accent color, used for less prominent highlights.
accent: ColorAccent color for decorative elements.
text: ColorDefault foreground text color.
text_dim: ColorDimmed text color for secondary labels and hints.
border: ColorBorder color for unfocused containers.
bg: ColorBackground color. Typically Color::Reset to inherit the terminal background.
success: ColorColor for success states (e.g., toast notifications).
warning: ColorColor for warning states.
error: ColorColor for error states.
selected_bg: ColorBackground color for selected list/table rows.
selected_fg: ColorForeground color for selected list/table rows.