Loading...
Searching...
No Matches
TabbedPanelTheme.h
Go to the documentation of this file.
1// TabbedPanelTheme.h
2#ifndef MALENA_TABBEDPANELTHEME_H
3#define MALENA_TABBEDPANELTHEME_H
4#pragma once
7
8namespace ml
9{
11 {
14 sf::Color tabHoverBg = sf::Color(255, 255, 255, 15);
22 float tabBarThickness = 1.f;
23
24 TabbedPanelTheme& applyFrom(const Theme& t) override
25 {
28 std::max(0, t.surface.r - 10),
29 std::max(0, t.surface.g - 10),
30 std::max(0, t.surface.b - 10));
37 closeColor = t.error;
38 return *this;
39 }
40
42 { static_cast<ControlTheme&>(*this) = c; return *this; }
44 { static_cast<ControlTheme&>(*this) = g; return *this; }
45 };
46} // namespace ml
47#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.
TabbedPanelTheme & operator=(const ControlTheme &c)
TabbedPanelTheme & operator=(const GraphicTheme &g)
float tabBarThickness
divider between bar and content
TabbedPanelTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
sf::Color tabActiveBar
accent line
Universal design token set applied across all Themeable components.
Definition Theme.h:70
sf::Color border
Definition Theme.h:98
sf::Color error
Definition Theme.h:104
sf::Color primary
Definition Theme.h:74
sf::Color onSurface
Definition Theme.h:86
sf::Color muted
Definition Theme.h:95
sf::Color surface
Definition Theme.h:80