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
asw::ui::Theme Struct Reference

Theme configuration for UI elements. More...

#include <theme.h>

Collaboration diagram for asw::ui::Theme:
[legend]

Public Attributes

asw::Color text { 255, 255, 255, 255 }
 Default text color.
 
asw::Color text_dim { 200, 200, 200, 255 }
 Dimmed text color.
 
asw::Color panel_bg { 30, 30, 30, 255 }
 Panel background color.
 
asw::Color btn_bg { 55, 55, 55, 255 }
 Button background color.
 
asw::Color btn_hover { 75, 75, 75, 255 }
 Button hover color.
 
asw::Color btn_pressed { 95, 95, 95, 255 }
 Button pressed color.
 
asw::Color btn_focus_ring { 255, 200, 80, 255 }
 Button focus ring color.
 
asw::Color input_bg { 20, 20, 20, 255 }
 Input box background color.
 
float padding = 10.0f
 Default padding.
 
float gap = 8.0f
 Default gap between elements.
 
bool show_focus = false
 Show focus rings around focused widgets. Enabled by default when using keyboard navigation.
 

Detailed Description

Theme configuration for UI elements.

Definition at line 18 of file theme.h.

Member Data Documentation

◆ btn_bg

asw::Color asw::ui::Theme::btn_bg { 55, 55, 55, 255 }

Button background color.

Definition at line 29 of file theme.h.

◆ btn_focus_ring

asw::Color asw::ui::Theme::btn_focus_ring { 255, 200, 80, 255 }

Button focus ring color.

Definition at line 38 of file theme.h.

◆ btn_hover

asw::Color asw::ui::Theme::btn_hover { 75, 75, 75, 255 }

Button hover color.

Definition at line 32 of file theme.h.

◆ btn_pressed

asw::Color asw::ui::Theme::btn_pressed { 95, 95, 95, 255 }

Button pressed color.

Definition at line 35 of file theme.h.

◆ gap

float asw::ui::Theme::gap = 8.0f

Default gap between elements.

Definition at line 47 of file theme.h.

◆ input_bg

asw::Color asw::ui::Theme::input_bg { 20, 20, 20, 255 }

Input box background color.

Definition at line 41 of file theme.h.

◆ padding

float asw::ui::Theme::padding = 10.0f

Default padding.

Definition at line 44 of file theme.h.

◆ panel_bg

asw::Color asw::ui::Theme::panel_bg { 30, 30, 30, 255 }

Panel background color.

Definition at line 26 of file theme.h.

◆ show_focus

bool asw::ui::Theme::show_focus = false

Show focus rings around focused widgets. Enabled by default when using keyboard navigation.

Definition at line 51 of file theme.h.

◆ text

asw::Color asw::ui::Theme::text { 255, 255, 255, 255 }

Default text color.

Definition at line 20 of file theme.h.

◆ text_dim

asw::Color asw::ui::Theme::text_dim { 200, 200, 200, 255 }

Dimmed text color.

Definition at line 23 of file theme.h.


The documentation for this struct was generated from the following file: