Loading...
Searching...
No Matches
RadioButtonTheme.h
Go to the documentation of this file.
1//
2// RadioButtonTheme.h
3//
4
5#ifndef MALENA_RADIOBUTTONTHEME_H
6#define MALENA_RADIOBUTTONTHEME_H
7
8#pragma once
9
12
13namespace ml
14{
24 {
25 sf::Color ringColor = sf::Color(120, 120, 120);
28 sf::Color dotColor = sf::Color(70, 130, 230);
33 float ringThickness = 2.f;
34
35 // ── applyFrom ─────────────────────────────────────────────────────────
36
50
51 // ── Assignment from parent levels ─────────────────────────────────────
52
54 { static_cast<ControlTheme&>(*this) = c; return *this; }
55
57 { static_cast<ControlTheme&>(*this) = g; return *this; }
58
59 // ── Getters / setters ─────────────────────────────────────────────────
60
61 [[nodiscard]] sf::Color getRingColor() const { return ringColor; }
62 [[nodiscard]] sf::Color getRingHoverColor() const { return ringHoverColor; }
63 [[nodiscard]] sf::Color getRingSelectedColor() const { return ringSelectedColor; }
64 [[nodiscard]] sf::Color getDotColor() const { return dotColor; }
65 [[nodiscard]] sf::Color getRingDisabledColor() const { return ringDisabledColor; }
66 [[nodiscard]] sf::Color getDotDisabledColor() const { return dotDisabledColor; }
67 [[nodiscard]] sf::Color getLabelColor() const { return labelColor; }
68 [[nodiscard]] sf::Color getLabelDisabledColor() const { return labelDisabledColor; }
69 [[nodiscard]] float getRingThickness() const { return ringThickness; }
70
71 void setRingColor(const sf::Color& c) { ringColor = c; }
74 void setDotColor(const sf::Color& c) { dotColor = c; }
77 void setLabelColor(const sf::Color& c) { labelColor = c; }
79 void setRingThickness(float t) { ringThickness = t; }
80 };
81
82} // namespace ml
83
84#endif // MALENA_RADIOBUTTONTHEME_H
static const Color White
Definition Component.h:22
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.
Color and font tokens for RadioButton.
sf::Color getDotDisabledColor() const
sf::Color getDotColor() const
void setLabelDisabledColor(const sf::Color &c)
sf::Color getRingDisabledColor() const
sf::Color getRingHoverColor() const
RadioButtonTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
RadioButtonTheme & operator=(const GraphicTheme &g)
sf::Color getLabelDisabledColor() const
float getRingThickness() const
void setDotColor(const sf::Color &c)
sf::Color getRingColor() const
void setRingColor(const sf::Color &c)
void setDotDisabledColor(const sf::Color &c)
sf::Color getLabelColor() const
void setRingDisabledColor(const sf::Color &c)
void setRingHoverColor(const sf::Color &c)
void setRingThickness(float t)
sf::Color getRingSelectedColor() const
void setRingSelectedColor(const sf::Color &c)
void setLabelColor(const sf::Color &c)
RadioButtonTheme & operator=(const ControlTheme &c)
Universal design token set applied across all Themeable components.
Definition Theme.h:70
sf::Color border
Definition Theme.h:98
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 secondary
Definition Theme.h:77