5 Struct N_GUI_THEME
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_GUI_THEME

Module: GUI: allegro5 widget system with pseudo-windows

Color theme for a widget.

#include "n_gui.h"

Public Attributes

Name
ALLEGRO_COLOR text_normal
text normal
ALLEGRO_COLOR text_hover
text hover
ALLEGRO_COLOR text_active
text active
ALLEGRO_COLOR selection_color
text selection highlight colour (semi-transparent recommended)
float corner_ry
corner radius Y for rounded shapes
float corner_rx
corner radius for rounded shapes
float border_thickness
border thickness
ALLEGRO_COLOR border_normal
border normal
ALLEGRO_COLOR border_hover
border hover
ALLEGRO_COLOR border_active
border active
ALLEGRO_COLOR bg_normal
background normal
ALLEGRO_COLOR bg_hover
background hover
ALLEGRO_COLOR bg_active
background active/pressed

Public Attributes Documentation

variable text_normal

ALLEGRO_COLOR text_normal;

text normal

variable text_hover

ALLEGRO_COLOR text_hover;

text hover

variable text_active

ALLEGRO_COLOR text_active;

text active

variable selection_color

ALLEGRO_COLOR selection_color;

text selection highlight colour (semi-transparent recommended)

variable corner_ry

float corner_ry;

corner radius Y for rounded shapes

variable corner_rx

float corner_rx;

corner radius for rounded shapes

variable border_thickness

float border_thickness;

border thickness

variable border_normal

ALLEGRO_COLOR border_normal;

border normal

variable border_hover

ALLEGRO_COLOR border_hover;

border hover

variable border_active

ALLEGRO_COLOR border_active;

border active

variable bg_normal

ALLEGRO_COLOR bg_normal;

background normal

variable bg_hover

ALLEGRO_COLOR bg_hover;

background hover

variable bg_active

ALLEGRO_COLOR bg_active;

background active/pressed