Loading...
Searching...
No Matches
AccordionTheme.h
Go to the documentation of this file.
1
2#ifndef MALENA_ACCORDIONTHEME_H
3#define MALENA_ACCORDIONTHEME_H
4
5#pragma once
6
9
10namespace ml
11{
13 {
19
20 AccordionTheme& applyFrom(const Theme& t) override
21 {
23 headerBg = t.surface;
28 return *this;
29 }
30
32 { static_cast<ControlTheme&>(*this) = c; return *this; }
33
35 { static_cast<ControlTheme&>(*this) = g; return *this; }
36
37 [[nodiscard]] sf::Color getHeaderBg() const { return headerBg; }
38 [[nodiscard]] sf::Color getHeaderHovered() const { return headerHovered; }
39 [[nodiscard]] sf::Color getContentBg() const { return contentBg; }
40 [[nodiscard]] sf::Color getChevronColor() const { return chevronColor; }
41 [[nodiscard]] sf::Color getDividerColor() const { return dividerColor; }
42
43 void setHeaderBg(const sf::Color& c) { headerBg = c; }
45 void setContentBg(const sf::Color& c) { contentBg = c; }
46 void setChevronColor(const sf::Color& c) { chevronColor = c; }
47 void setDividerColor(const sf::Color& c) { dividerColor = c; }
48 };
49
50} // namespace ml
51
52#endif // MALENA_ACCORDIONTHEME_H
Definition Component.h:22
sf::Color getHeaderBg() const
void setChevronColor(const sf::Color &c)
sf::Color getContentBg() const
AccordionTheme & operator=(const GraphicTheme &g)
void setContentBg(const sf::Color &c)
sf::Color getChevronColor() const
void setHeaderBg(const sf::Color &c)
sf::Color getDividerColor() const
AccordionTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
AccordionTheme & operator=(const ControlTheme &c)
sf::Color getHeaderHovered() const
void setDividerColor(const sf::Color &c)
void setHeaderHovered(const sf::Color &c)
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 onSurface
Definition Theme.h:86
sf::Color background
Definition Theme.h:83
sf::Color surface
Definition Theme.h:80
sf::Color secondary
Definition Theme.h:77