Loading...
Searching...
No Matches
SplitPanelTheme.h
Go to the documentation of this file.
1// SplitPanelTheme.h
2#ifndef MALENA_SPLITPANELTHEME_H
3#define MALENA_SPLITPANELTHEME_H
4#pragma once
7
8namespace ml
9{
11 {
15 sf::Color gripColor = sf::Color(100, 100, 130);
16 sf::Color paneBg = sf::Color(28, 28, 38);
17
18 SplitPanelTheme& applyFrom(const Theme& t) override
19 {
23 std::min(255, t.border.r + 40),
24 std::min(255, t.border.g + 40),
25 std::min(255, t.border.b + 40));
27 gripColor = t.muted;
28 paneBg = t.surface;
29 return *this;
30 }
31
33 { static_cast<ControlTheme&>(*this) = c; return *this; }
35 { static_cast<ControlTheme&>(*this) = g; return *this; }
36 };
37} // namespace ml
38#endif
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.
SplitPanelTheme & operator=(const ControlTheme &c)
SplitPanelTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
SplitPanelTheme & operator=(const GraphicTheme &g)
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 muted
Definition Theme.h:95
sf::Color surface
Definition Theme.h:80