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::Font font
 Font for widgets that do not set their own.
 
ButtonStyle button {}
 Default button style.
 
CheckboxStyle checkbox {}
 Default checkbox style.
 
InputStyle input {}
 Default input box style.
 
SliderStyle slider {}
 Default slider style.
 
FocusRingStyle focus_ring {}
 Focus ring style.
 
ToastStyle toast {}
 Messages from Root::toast.
 
ModalStyle modal {}
 Modals from Root::open_modal.
 
float padding = 10.0f
 Default padding.
 
float gap = 8.0f
 Default gap between elements.
 
asw::Sample sound_move
 Played on the UI bus when navigation moves focus. Optional.
 
asw::Sample sound_activate
 Played on the UI bus when a widget is clicked or activated. Optional.
 

Detailed Description

Theme configuration for UI elements.

Definition at line 250 of file theme.h.

Member Data Documentation

◆ button

ButtonStyle asw::ui::Theme::button {}

Default button style.

Definition at line 264 of file theme.h.

◆ checkbox

CheckboxStyle asw::ui::Theme::checkbox {}

Default checkbox style.

Definition at line 267 of file theme.h.

◆ focus_ring

FocusRingStyle asw::ui::Theme::focus_ring {}

Focus ring style.

Definition at line 276 of file theme.h.

◆ font

asw::Font asw::ui::Theme::font

Font for widgets that do not set their own.

Definition at line 261 of file theme.h.

◆ gap

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

Default gap between elements.

Definition at line 288 of file theme.h.

◆ input

InputStyle asw::ui::Theme::input {}

Default input box style.

Definition at line 270 of file theme.h.

◆ modal

ModalStyle asw::ui::Theme::modal {}

Modals from Root::open_modal.

Definition at line 282 of file theme.h.

◆ padding

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

Default padding.

Definition at line 285 of file theme.h.

◆ panel_bg

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

Panel background color.

Definition at line 258 of file theme.h.

◆ slider

SliderStyle asw::ui::Theme::slider {}

Default slider style.

Definition at line 273 of file theme.h.

◆ sound_activate

asw::Sample asw::ui::Theme::sound_activate

Played on the UI bus when a widget is clicked or activated. Optional.

Definition at line 295 of file theme.h.

◆ sound_move

asw::Sample asw::ui::Theme::sound_move

Played on the UI bus when navigation moves focus. Optional.

Definition at line 291 of file theme.h.

◆ text

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

Default text color.

Definition at line 252 of file theme.h.

◆ text_dim

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

Dimmed text color.

Definition at line 255 of file theme.h.

◆ toast

ToastStyle asw::ui::Theme::toast {}

Messages from Root::toast.

Definition at line 279 of file theme.h.


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