libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
palette.h
Go to the documentation of this file.
1
8#pragma once
9
11#include <promeki/tui/style.h>
12
14
116
Dynamic array container wrapping std::vector.
Definition list.h:40
Style palette for TUI widgets.
Definition palette.h:35
ColorGroup
Color group based on widget state.
Definition palette.h:40
@ Inactive
Widget does not have focus.
Definition palette.h:42
@ Active
Widget has focus.
Definition palette.h:41
@ Disabled
Widget is disabled.
Definition palette.h:43
TuiStyle style(ColorGroup group, ColorRole role) const
Returns the style for a specific group and role.
void setStyle(ColorGroup group, ColorRole role, const TuiStyle &style)
Sets a style for a specific group and role.
ColorRole
Semantic style role.
Definition palette.h:50
@ StatusBarText
Status bar text.
Definition palette.h:66
@ WindowText
Text on Window background.
Definition palette.h:52
@ ButtonLight
Button background in unpressed / active-tab state.
Definition palette.h:58
@ FocusText
Bright foreground for focused widgets.
Definition palette.h:60
@ ButtonBorder
Single-character border around buttons.
Definition palette.h:57
@ ButtonDark
Button background in pressed / inactive-tab state.
Definition palette.h:59
@ Highlight
Selected item / accent background.
Definition palette.h:61
@ HighlightedText
Text on Highlight background.
Definition palette.h:62
@ ProgressEmpty
Empty portion of progress bar.
Definition palette.h:69
@ ProgressFilledText
Text on filled portion of progress bar.
Definition palette.h:68
@ Text
Text on Base background.
Definition palette.h:54
@ Base
Input/editable widget background.
Definition palette.h:53
@ Window
Container/frame background.
Definition palette.h:51
@ PlaceholderText
Placeholder/hint text.
Definition palette.h:63
@ ProgressFilled
Filled portion of progress bar.
Definition palette.h:67
@ Button
Button background (legacy).
Definition palette.h:55
@ StatusBar
Status bar background.
Definition palette.h:65
@ Mid
Borders, separators, frames.
Definition palette.h:64
@ ButtonText
Text on button backgrounds.
Definition palette.h:56
@ ProgressEmptyText
Text on empty portion of progress bar.
Definition palette.h:70
TuiPalette()
Constructs a palette with default styles.
TuiStyle style(ColorRole role, bool focused, bool enabled=true) const
Convenience: picks the group from widget state flags.
TuiStyle style(ColorRole role, const TuiStyleState &state) const
Returns the style for a role given widget state.
Widget state bundle fed into palette lookups.
Definition style.h:124
Visual properties of a TUI cell (everything except the character).
Definition style.h:29
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19