Loading...
Searching...
No Matches
RadioGroupTheme.h
Go to the documentation of this file.
1//
2// RadioGroupTheme.h
3//
4
5#ifndef MALENA_RADIOGROUPTHEME_H
6#define MALENA_RADIOGROUPTHEME_H
7
8#pragma once
9
12
13namespace ml
14{
24 {
27
28 // ── applyFrom ─────────────────────────────────────────────────────────
29
30 RadioGroupTheme& applyFrom(const Theme& t) override
31 {
33 bgColor = sf::Color(t.surface.r, t.surface.g, t.surface.b, 220);
35 return *this;
36 }
37
38 // ── Assignment from parent levels ─────────────────────────────────────
39
41 { static_cast<RadioButtonTheme&>(*this) = r; return *this; }
42
44 { static_cast<RadioButtonTheme&>(*this) = c; return *this; }
45
47 { static_cast<RadioButtonTheme&>(*this) = g; return *this; }
48
49 // ── Getters / setters ─────────────────────────────────────────────────
50
51 [[nodiscard]] sf::Color getBgColor() const { return bgColor; }
52 [[nodiscard]] sf::Color getBgOutlineColor() const { return bgOutlineColor; }
53
54 void setBgColor(const sf::Color& c) { bgColor = c; }
56 };
57
58} // namespace ml
59
60#endif // MALENA_RADIOGROUPTHEME_H
static const Color Transparent
std::uint8_t b
std::uint8_t g
std::uint8_t r
Definition Component.h:22
Theme tokens for interactive UI controls.
Theme tokens for all visual components.
Color and font tokens for RadioButton.
RadioButtonTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Color tokens for RadioGroup.
sf::Color getBgOutlineColor() const
void setBgOutlineColor(const sf::Color &c)
RadioGroupTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
RadioGroupTheme & operator=(const GraphicTheme &g)
sf::Color getBgColor() const
RadioGroupTheme & operator=(const RadioButtonTheme &r)
void setBgColor(const sf::Color &c)
RadioGroupTheme & 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 surface
Definition Theme.h:80