pub struct Theme {Show 33 fields
pub background: Rgb,
pub surface: Rgb,
pub overlay_bg: Rgb,
pub title_bg: Rgb,
pub status_bg: Rgb,
pub gauge_bg: Rgb,
pub text: Rgb,
pub muted: Rgb,
pub dim: Rgb,
pub border: Rgb,
pub accent: Rgb,
pub accent_soft: Rgb,
pub title_accent: Rgb,
pub pink: Rgb,
pub success: Rgb,
pub warning: Rgb,
pub error: Rgb,
pub info: Rgb,
pub gauge_fg: Rgb,
pub directory: Rgb,
pub executable: Rgb,
pub symlink: Rgb,
pub device: Rgb,
pub device_warn: Rgb,
pub hidden: Rgb,
pub selection_bg: Rgb,
pub selection_fg: Rgb,
pub cursor_bg: Rgb,
pub cursor_fg: Rgb,
pub marked_bg: Rgb,
pub marked_fg: Rgb,
pub buttonbar_bg: Rgb,
pub buttonbar_fg: Rgb,
}Expand description
A complete color theme. All slots are truecolor Rgb(u8, u8, u8).
33 slots, organised into seven semantic groups:
- Surface/background family (6):
background,surface,overlay_bg,title_bg,status_bg,gauge_bg. The three-tier surface (background < surface < overlay_bg) gives cards visual lift without resorting to greyscale. - Foreground/text family (4):
text,muted,dim,border.dimdeliberately fails WCAG AA-body — it is for de-emphasis only. - Accent family (4):
accent,accent_soft,title_accent,pink.accentis the brand red and is identical in both dark and light themes;title_accentis a brighter red for title bars. - Semantic family (4):
success,warning,error,info. Apps must add a non-colour cue (glyph, bold, underline) alongside these — seelocal/docs/RED-BEAR-TUI-THEME.md. - Gauge (1):
gauge_fg(brand-red progress fill; matchesaccentso a dark-accent progress bar uses the same hex as the selected-row highlight). - File-type slots (tlc) (6):
directory,executable,symlink,device,device_warn,hidden. - Selection/cursor/marked (tlc) (8):
selection_{bg,fg},cursor_{bg,fg},marked_{bg,fg},buttonbar_{bg,fg}.
Fields§
§background: RgbDefault panel body background.
surface: RgbRaised card (slightly lighter than background).
overlay_bg: RgbModal/popup background (between body and card).
title_bg: RgbTitle bar / section header background.
status_bg: RgbStatus line / button bar background.
gauge_bg: RgbProgress bar unfilled portion.
text: RgbPrimary body text.
muted: RgbSecondary text, labels, hints.
dim: RgbDe-emphasized text, disabled items. AA-large only.
border: RgbPanel borders, separators. AA-body compliant.
accent: RgbPrimary brand red — selection, focused borders, brand marks.
accent_soft: RgbWashed red — hover, secondary accents.
title_accent: RgbBrighter red for title bar foreground.
pink: RgbHighlight / favorite / active link. Used sparingly.
success: RgbCompleted operations, online state.
warning: RgbCaution, pending state.
error: RgbFailure, destructive action.
info: RgbInformational badges.
gauge_fg: RgbBrand-red progress fill. Identical in dark and light themes
(matches accent so a progress bar uses the same hex as the
selected-row highlight). Apps that need a non-brand gauge
fill can replace this slot per-theme (e.g. a separate
cub_progress theme struct).
directory: RgbFolder names.
executable: RgbExecutable (+x) files.
symlink: RgbSymbolic links.
device: RgbDevice nodes (/dev/*).
device_warn: RgbUnmounted / error-state device.
Dotfiles (alias of dim).
selection_bg: RgbInactive selection background.
selection_fg: RgbInactive selection foreground.
cursor_bg: RgbActive cursor line background.
cursor_fg: RgbActive cursor line foreground.
marked_bg: RgbF3-marked files background.
marked_fg: RgbF3-marked files foreground.
F-key button bar background.
F-key button bar foreground.