13PROMEKI_NAMESPACE_BEGIN
120 TuiStyle _styles[GroupCount][RoleCount];
Style palette for TUI widgets.
Definition palette.h:41
TuiStyle style(ColorGroup group, ColorRole role) const
Returns the style for a specific group and role.
TuiPalette()
Constructs a palette with default styles.
ColorRole
Semantic style role.
Definition palette.h:56
@ FocusText
Bright foreground for focused widgets.
Definition palette.h:66
@ StatusBar
Status bar background.
Definition palette.h:71
@ ProgressEmpty
Empty portion of progress bar.
Definition palette.h:75
@ Button
Button background (legacy).
Definition palette.h:61
@ WindowText
Text on Window background.
Definition palette.h:58
@ PlaceholderText
Placeholder/hint text.
Definition palette.h:69
@ ButtonDark
Button background in pressed / inactive-tab state.
Definition palette.h:65
@ HighlightedText
Text on Highlight background.
Definition palette.h:68
@ Base
Input/editable widget background.
Definition palette.h:59
@ ButtonLight
Button background in unpressed / active-tab state.
Definition palette.h:64
@ Text
Text on Base background.
Definition palette.h:60
@ ButtonText
Text on button backgrounds.
Definition palette.h:62
@ ProgressEmptyText
Text on empty portion of progress bar.
Definition palette.h:76
@ Window
Container/frame background.
Definition palette.h:57
@ ButtonBorder
Single-character border around buttons.
Definition palette.h:63
@ ProgressFilledText
Text on filled portion of progress bar.
Definition palette.h:74
@ StatusBarText
Status bar text.
Definition palette.h:72
@ Highlight
Selected item / accent background.
Definition palette.h:67
@ Mid
Borders, separators, frames.
Definition palette.h:70
@ ProgressFilled
Filled portion of progress bar.
Definition palette.h:73
TuiStyle style(ColorRole role, const TuiStyleState &state) const
Returns the style for a role given widget state.
TuiStyle style(ColorRole role, bool focused, bool enabled=true) const
Convenience: picks the group from widget state flags.
void setStyle(ColorGroup group, ColorRole role, const TuiStyle &style)
Sets a style for a specific group and role.
ColorGroup
Color group based on widget state.
Definition palette.h:46
@ Inactive
Widget does not have focus.
Definition palette.h:48
@ Disabled
Widget is disabled.
Definition palette.h:49
@ Active
Widget has focus.
Definition palette.h:47
Widget state bundle fed into palette lookups.
Definition style.h:138
Visual properties of a TUI cell (everything except the character).
Definition style.h:35