|
Aegis2D
Modular C++26 2D game engine for networked games
|
Colors, text size and layer of a menu. More...
#include <aegis2d/ui/menu.hpp>
Public Attributes | |
| render::Color | button = render::rgb(0x2B2D42) |
| Background of a button in the Normal state. | |
| render::Color | focused = render::rgb(0x1D4E89) |
| Background of the focused button. | |
| render::Color | pressed = render::rgb(0x0B2545) |
| Background of the pressed button. | |
| render::Color | disabled = render::rgb(0x3A3A3A) |
| Background of a disabled button. | |
| render::Color | text = render::rgb(0xFFFFFF) |
| Text of the buttons and labels. | |
| render::Color | disabled_text = render::rgb(0xB0B0B0) |
| Text of a disabled button. | |
| render::Color | outline = render::rgb(0xFFD166) |
| Outline around the focused button. | |
| float | outline_width = 2.0F |
| Width of the outline, in logical pixels at 100%. | |
| float | text_scale = 2.0F |
| Scale of the text at 100%, multiplied by the tree's scale. | |
| std::int32_t | layer = 100 |
| Layer of the backgrounds; the text goes one layer above. | |
Colors, text size and layer of a menu.
The default colors keep a contrast of at least 4.5:1 between each button's text and its background (WCAG 2 AA), and the focused button has an outline as well as its own color, so the focus never shows by color alone.
| render::Color aegis2d::ui::MenuStyle::button = render::rgb(0x2B2D42) |
Background of a button in the Normal state.
| render::Color aegis2d::ui::MenuStyle::disabled = render::rgb(0x3A3A3A) |
Background of a disabled button.
| render::Color aegis2d::ui::MenuStyle::disabled_text = render::rgb(0xB0B0B0) |
Text of a disabled button.
| render::Color aegis2d::ui::MenuStyle::focused = render::rgb(0x1D4E89) |
Background of the focused button.
| std::int32_t aegis2d::ui::MenuStyle::layer = 100 |
Layer of the backgrounds; the text goes one layer above.
| render::Color aegis2d::ui::MenuStyle::outline = render::rgb(0xFFD166) |
Outline around the focused button.
| float aegis2d::ui::MenuStyle::outline_width = 2.0F |
Width of the outline, in logical pixels at 100%.
| render::Color aegis2d::ui::MenuStyle::pressed = render::rgb(0x0B2545) |
Background of the pressed button.
| render::Color aegis2d::ui::MenuStyle::text = render::rgb(0xFFFFFF) |
Text of the buttons and labels.
| float aegis2d::ui::MenuStyle::text_scale = 2.0F |
Scale of the text at 100%, multiplied by the tree's scale.