Loading...
Searching...
No Matches
CheckboxTheme.h
Go to the documentation of this file.
1//
2// CheckboxTheme.h
3//
4
5#ifndef MALENA_CHECKBOXTHEME_H
6#define MALENA_CHECKBOXTHEME_H
7
8#pragma once
9
12
13namespace ml
14{
24 {
34
35 // ── applyFrom ─────────────────────────────────────────────────────────
36
51
52 // ── Assignment from parent levels ─────────────────────────────────────
53
55 { static_cast<ControlTheme&>(*this) = c; return *this; }
56
58 { static_cast<ControlTheme&>(*this) = g; return *this; }
59
60 // ── Getters / setters ─────────────────────────────────────────────────
61
62 [[nodiscard]] sf::Color getBoxColor() const { return boxColor; }
63 [[nodiscard]] sf::Color getBoxHoverColor() const { return boxHoverColor; }
64 [[nodiscard]] sf::Color getBoxCheckedColor() const { return boxCheckedColor; }
65 [[nodiscard]] sf::Color getBoxDisabledColor() const { return boxDisabledColor; }
66 [[nodiscard]] sf::Color getCheckColor() const { return checkColor; }
67 [[nodiscard]] sf::Color getCheckDisabledColor() const { return checkDisabledColor; }
68 [[nodiscard]] sf::Color getOutlineColor() const { return outlineColor; }
69 [[nodiscard]] sf::Color getLabelColor() const { return labelColor; }
70 [[nodiscard]] sf::Color getLabelDisabledColor() const { return labelDisabledColor; }
71
72 void setBoxColor(const sf::Color& c) { boxColor = c; }
76 void setCheckColor(const sf::Color& c) { checkColor = c; }
78 void setOutlineColor(const sf::Color& c) { outlineColor = c; }
79 void setLabelColor(const sf::Color& c) { labelColor = c; }
81 };
82
83} // namespace ml
84
85#endif // MALENA_CHECKBOXTHEME_H
static const Color White
Definition Component.h:22
Color and font tokens for Checkbox.
void setBoxHoverColor(const sf::Color &c)
void setOutlineColor(const sf::Color &c)
CheckboxTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
void setBoxCheckedColor(const sf::Color &c)
sf::Color labelDisabledColor
sf::Color getBoxColor() const
void setLabelColor(const sf::Color &c)
sf::Color getOutlineColor() const
void setBoxColor(const sf::Color &c)
void setLabelDisabledColor(const sf::Color &c)
void setBoxDisabledColor(const sf::Color &c)
sf::Color outlineColor
sf::Color boxHoverColor
void setCheckDisabledColor(const sf::Color &c)
sf::Color getBoxCheckedColor() const
CheckboxTheme & operator=(const GraphicTheme &g)
sf::Color getBoxDisabledColor() const
void setCheckColor(const sf::Color &c)
sf::Color getLabelDisabledColor() const
sf::Color getLabelColor() const
sf::Color getCheckColor() const
sf::Color boxCheckedColor
CheckboxTheme & operator=(const ControlTheme &c)
sf::Color boxDisabledColor
sf::Color getBoxHoverColor() const
sf::Color getCheckDisabledColor() const
sf::Color checkDisabledColor
Theme tokens for interactive UI controls.
ControlTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Theme tokens for all visual components.
Universal design token set applied across all Themeable components.
Definition Theme.h:70
sf::Color border
Definition Theme.h:98
sf::Color onPrimary
Definition Theme.h:89
sf::Color primary
Definition Theme.h:74
sf::Color onSurface
Definition Theme.h:86
sf::Color disabled
Definition Theme.h:110
sf::Color onDisabled
Definition Theme.h:113
sf::Color surface
Definition Theme.h:80
sf::Color secondary
Definition Theme.h:77