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