Theme tokens for all visual components. More...
#include <Malena/Traits/Theme/GraphicTheme.h>
Public Member Functions | |
| virtual | ~GraphicTheme ()=default |
| virtual GraphicTheme & | applyFrom (const Theme &t) |
Populate all fields from the global Theme token set. | |
| sf::Color | getFillColor () const |
| sf::Color | getOutlineColor () const |
| float | getOutlineThickness () const |
| float | getRadius () const |
| void | setFillColor (const sf::Color &c) |
| void | setOutlineColor (const sf::Color &c) |
| void | setOutlineThickness (float t) |
| void | setRadius (float r) |
Public Attributes | |
| sf::Color | fillColor = sf::Color(40, 40, 40) |
| sf::Color | outlineColor = sf::Color(100, 100, 100) |
| float | outlineThickness = 1.5f |
| float | radius = 8.f |
Theme tokens for all visual components.
Maps universal Theme tokens to the lowest-level visual variables shared by every drawable component. All other theme structs inherit from this.
Getters and setters are defined here so any component that inherits GraphicTheme exposes them directly on its own API.
Definition at line 41 of file GraphicTheme.h.
|
virtualdefault |
|
inlinevirtual |
Populate all fields from the global Theme token set.
Subclasses call GraphicTheme::applyFrom(t) first, then apply their own token mappings.
Reimplemented in ml::ButtonStyle, ml::ButtonTheme, ml::CheckboxGroupStyle, ml::CheckboxGroupTheme, ml::CheckboxStyle, ml::CheckboxTheme, ml::ControlTheme, ml::InputTheme, ml::ListItemStyle, ml::ListItemTheme, ml::ListStyle, ml::ListTheme, ml::MenuBarStyle, ml::MenuBarTheme, 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 56 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 67 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 68 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 69 of file GraphicTheme.h.
|
inlinenodiscard |
Definition at line 70 of file GraphicTheme.h.
|
inline |
Definition at line 72 of file GraphicTheme.h.
|
inline |
Definition at line 73 of file GraphicTheme.h.
|
inline |
Definition at line 74 of file GraphicTheme.h.
|
inline |
Definition at line 75 of file GraphicTheme.h.
Definition at line 43 of file GraphicTheme.h.
Definition at line 44 of file GraphicTheme.h.
| float ml::GraphicTheme::outlineThickness = 1.5f |
Definition at line 45 of file GraphicTheme.h.
| float ml::GraphicTheme::radius = 8.f |
Definition at line 46 of file GraphicTheme.h.