Loading...
Searching...
No Matches
SideMenuTheme.h
Go to the documentation of this file.
1// SideMenuTheme.h
2#ifndef MALENA_SIDEMENUTHEME_H
3#define MALENA_SIDEMENUTHEME_H
4#pragma once
7
8namespace ml
9{
11 {
16
17 SideMenuTheme& applyFrom(const Theme& t) override
18 {
21 std::max(0, t.surface.r - 8),
22 std::max(0, t.surface.g - 8),
23 std::max(0, t.surface.b - 8));
25 return *this;
26 }
28 { static_cast<ControlTheme&>(*this) = c; return *this; }
30 { static_cast<ControlTheme&>(*this) = g; return *this; }
31
32 void setPanelBg(const sf::Color& c) { panelBg = c; }
35 void setHamburgerBg(const sf::Color& c) { hamburgerBg = c; }
36 };
37} // namespace ml
38#endif
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.
ControlTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Theme tokens for all visual components.
sf::Color backdropColor
SideMenuTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
SideMenuTheme & operator=(const ControlTheme &c)
void setHamburgerBg(const sf::Color &c)
SideMenuTheme & operator=(const GraphicTheme &g)
void setHamburgerColor(const sf::Color &c)
sf::Color hamburgerColor
void setPanelBg(const sf::Color &c)
void setBackdropColor(const sf::Color &c)
sf::Color hamburgerBg
Universal design token set applied across all Themeable components.
Definition Theme.h:70
sf::Color onSurface
Definition Theme.h:86
sf::Color surface
Definition Theme.h:80