Loading...
Searching...
No Matches
MenuBarTheme.h
Go to the documentation of this file.
1// MenuBarTheme.h
2#ifndef MALENA_MENUBARTHEME_H
3#define MALENA_MENUBARTHEME_H
4#pragma once
7
8namespace ml
9{
11 {
12 sf::Color barBg = sf::Color(28, 28, 36);
13 sf::Color entryHoverBg = sf::Color(255, 255, 255, 20);
14 sf::Color entryOpenBg = sf::Color(255, 255, 255, 30);
20 sf::Color itemHoverBg = sf::Color(70, 130, 230, 60);
22
23 MenuBarTheme& applyFrom(const Theme& t) override
24 {
27 std::max(0, t.surface.r - 8),
28 std::max(0, t.surface.g - 8),
29 std::max(0, t.surface.b - 8));
39 return *this;
40 }
42 { static_cast<ControlTheme&>(*this) = c; return *this; }
44 { static_cast<ControlTheme&>(*this) = g; return *this; }
45 };
46} // namespace ml
47#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.
sf::Color entryHoverBg
MenuBarTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
sf::Color itemDisabledColor
sf::Color checkmarkColor
sf::Color separatorColor
sf::Color shortcutColor
sf::Color dropdownBorder
sf::Color itemHoverBg
MenuBarTheme & operator=(const ControlTheme &c)
MenuBarTheme & operator=(const GraphicTheme &g)
sf::Color dropdownBg
sf::Color entryOpenBg
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 onSurface
Definition Theme.h:86
sf::Color muted
Definition Theme.h:95
sf::Color onDisabled
Definition Theme.h:113
sf::Color surface
Definition Theme.h:80