Theme tokens for interactive UI controls. More...
#include <Malena/Traits/Theme/ControlTheme.h>
Public Attributes | |
| sf::Color | disabledColor = sf::Color(60, 60, 60) |
| sf::Color | disabledTextColor = sf::Color(120, 120, 120) |
| sf::Color | errorColor = sf::Color(220, 70, 70) |
| sf::Color | fillColor = sf::Color(40, 40, 40) |
| sf::Color | focusColor = sf::Color(100, 60, 200) |
| const sf::Font * | font = &FontManager<>::getDefault() |
| unsigned int | fontSize = 14 |
| unsigned int | fontSizeSmall = 11 |
| sf::Color | hoverColor = sf::Color(70, 130, 230) |
| sf::Color | mutedColor = sf::Color(120, 120, 120) |
| sf::Color | outlineColor = sf::Color(100, 100, 100) |
| float | outlineThickness = 1.5f |
| float | padding = 8.f |
| float | radius = 8.f |
| sf::Color | textColor = sf::Color::White |
Theme tokens for interactive UI controls.
Extends GraphicTheme with tokens for hover, focus, disabled, and text states. All controls — toggles, buttons, checkboxes, etc. — use ControlTheme or a subclass.
Definition at line 28 of file ControlTheme.h.
|
inlineoverridevirtual |
Populate all fields from the global Theme token set.
Subclasses call GraphicTheme::applyFrom(t) first, then apply their own token mappings.
Reimplemented from ml::GraphicTheme.
Reimplemented in ml::InputTheme, ml::ListItemStyle, ml::ListItemTheme, ml::ListStyle, ml::ListTheme, ml::MenuBarStyle, ml::MenuBarTheme, ml::ModalTheme, ml::PillStyle, ml::PillTheme, ml::RadioButtonStyle, ml::RadioButtonTheme, ml::RadioGroupStyle, ml::RadioGroupTheme, ml::SegmentStyle, ml::SegmentTheme, ml::SelectStyle, ml::SelectTheme, ml::SideMenuStyle, ml::SideMenuTheme, ml::SplitPanelStyle, ml::SplitPanelTheme, ml::TabbedPanelStyle, ml::TabbedPanelTheme, ml::TextAreaStyle, ml::TextInputStyle, ml::TextInputTheme, ml::ToggleTheme, ml::ToolbarStyle, and ml::ToolbarTheme.
Definition at line 45 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 75 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 76 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 74 of file ControlTheme.h.
|
inlinenodiscardinherited |
Definition at line 67 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 73 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 80 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 81 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 82 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 72 of file ControlTheme.h.
|
inlinenodiscard |
Definition at line 78 of file ControlTheme.h.
|
inlinenodiscardinherited |
Definition at line 68 of file GraphicTheme.h.
|
inlinenodiscardinherited |
Definition at line 69 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 79 of file ControlTheme.h.
|
inlinenodiscardinherited |
Definition at line 70 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 77 of file ControlTheme.h.
|
inline |
Definition at line 64 of file ControlTheme.h.
|
inline |
Definition at line 87 of file ControlTheme.h.
|
inline |
Definition at line 88 of file ControlTheme.h.
|
inline |
Definition at line 86 of file ControlTheme.h.
|
inlineinherited |
Definition at line 72 of file GraphicTheme.h.
|
inline |
Definition at line 85 of file ControlTheme.h.
|
delete |
|
inline |
Definition at line 92 of file ControlTheme.h.
|
inline |
Definition at line 94 of file ControlTheme.h.
|
inline |
Definition at line 95 of file ControlTheme.h.
|
inline |
Definition at line 84 of file ControlTheme.h.
|
inline |
Definition at line 90 of file ControlTheme.h.
|
inlineinherited |
Definition at line 73 of file GraphicTheme.h.
|
inlineinherited |
Definition at line 74 of file GraphicTheme.h.
|
inline |
Definition at line 91 of file ControlTheme.h.
|
inlineinherited |
Definition at line 75 of file GraphicTheme.h.
|
inline |
Definition at line 89 of file ControlTheme.h.
Definition at line 33 of file ControlTheme.h.
Definition at line 34 of file ControlTheme.h.
Definition at line 32 of file ControlTheme.h.
Definition at line 43 of file GraphicTheme.h.
Definition at line 31 of file ControlTheme.h.
| const sf::Font* ml::ControlTheme::font = &FontManager<>::getDefault() |
Definition at line 39 of file ControlTheme.h.
| unsigned int ml::ControlTheme::fontSize = 14 |
Definition at line 40 of file ControlTheme.h.
| unsigned int ml::ControlTheme::fontSizeSmall = 11 |
Definition at line 41 of file ControlTheme.h.
Definition at line 30 of file ControlTheme.h.
Definition at line 36 of file ControlTheme.h.
Definition at line 44 of file GraphicTheme.h.
|
inherited |
Definition at line 45 of file GraphicTheme.h.
| float ml::ControlTheme::padding = 8.f |
Definition at line 37 of file ControlTheme.h.
|
inherited |
Definition at line 46 of file GraphicTheme.h.
| sf::Color ml::ControlTheme::textColor = sf::Color::White |
Definition at line 35 of file ControlTheme.h.