ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
theme.h
Go to the documentation of this file.
1
8
9#ifndef ASW_MODULES_UI_THEME_H
10#define ASW_MODULES_UI_THEME_H
11
12#include "../color.h"
13
14namespace asw::ui {
15
18struct Theme {
20 asw::Color text { 255, 255, 255, 255 };
21
23 asw::Color text_dim { 200, 200, 200, 255 };
24
26 asw::Color panel_bg { 30, 30, 30, 255 };
27
29 asw::Color btn_bg { 55, 55, 55, 255 };
30
32 asw::Color btn_hover { 75, 75, 75, 255 };
33
35 asw::Color btn_pressed { 95, 95, 95, 255 };
36
38 asw::Color btn_focus_ring { 255, 200, 80, 255 };
39
41 asw::Color input_bg { 20, 20, 20, 255 };
42
44 float padding = 10.0f;
45
47 float gap = 8.0f;
48
51 bool show_focus = false;
52};
53
54} // namespace asw::ui
55
56#endif // ASW_MODULES_UI_THEME_H
RGBA color struct with 8-bit channels.
Definition color.h:11
Theme configuration for UI elements.
Definition theme.h:18
asw::Color text
Default text color.
Definition theme.h:20
bool show_focus
Show focus rings around focused widgets. Enabled by default when using keyboard navigation.
Definition theme.h:51
float gap
Default gap between elements.
Definition theme.h:47
asw::Color panel_bg
Panel background color.
Definition theme.h:26
asw::Color input_bg
Input box background color.
Definition theme.h:41
asw::Color btn_pressed
Button pressed color.
Definition theme.h:35
asw::Color text_dim
Dimmed text color.
Definition theme.h:23
asw::Color btn_focus_ring
Button focus ring color.
Definition theme.h:38
asw::Color btn_hover
Button hover color.
Definition theme.h:32
float padding
Default padding.
Definition theme.h:44
asw::Color btn_bg
Button background color.
Definition theme.h:29