libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GuiTheme Struct Reference

Colors, metrics and the style recipes built from them. More...

#include <GuiTheme.h>

Public Member Functions

 GuiTheme ()
 The default dark theme.
 
GuiShapeStyle panelStyle () const
 A quiet container: flat surface with a thin outline.
 
GuiShapeStyle cardStyle () const
 A raised card: gradient surface, outline, drop shadow; a glowing accent outline when focused.
 
GuiShapeStyle buttonStyle () const
 A capsule or rounded button: lights up in the accent color when focused, darkens when pressed.
 
GuiShapeStyle chipStyle () const
 A small label background (a "chip")
 
GuiShapeStyle rowStyle () const
 A flat list row: invisible at rest, a gray bar when focused, tinted when pressed.
 
GuiShapeStyle barStyle () const
 A dark strip for a hint or status bar.
 

Static Public Member Functions

static GuiTheme & current ()
 The theme the rest of the library reads. Starts as the default dark theme.
 

Public Attributes

PixelColor background
 Screen background.
 
PixelColor surface
 Panels and resting cards.
 
PixelColor surfaceRaised
 Lighter end of a card's gradient, chips.
 
PixelColor outline
 Quiet outlines.
 
PixelColor outlineStrong
 Resting button outline and fill.
 
PixelColor accent
 Highlight: focus outline, focused button.
 
PixelColor accentLight
 Light end of the focused-button gradient.
 
PixelColor accentDark
 Pressed-button fill.
 
PixelColor text
 Primary text.
 
PixelColor textMuted
 Secondary text.
 
PixelColor textOnAccent
 Text drawn over the accent color.
 
PixelColor good
 Positive state (connected, charged).
 
float radius
 Corner radius of cards and panels.
 
float strokeWidth
 Outline width.
 
float padding
 Space inside a card.
 
float spacing
 Gap between siblings.
 
float shadowBlur
 Softness of a resting card's shadow.
 

Detailed Description

Colors, metrics and the style recipes built from them.

Change a value on GuiTheme::current() and every shape styled afterwards follows.

Definition at line 16 of file GuiTheme.h.

Constructor & Destructor Documentation

◆ GuiTheme()

GuiTheme::GuiTheme ( )

The default dark theme.

Definition at line 15 of file GuiTheme.cpp.

Member Function Documentation

◆ barStyle()

GuiShapeStyle GuiTheme::barStyle ( ) const

A dark strip for a hint or status bar.

Definition at line 96 of file GuiTheme.cpp.

◆ buttonStyle()

GuiShapeStyle GuiTheme::buttonStyle ( ) const

A capsule or rounded button: lights up in the accent color when focused, darkens when pressed.

Definition at line 66 of file GuiTheme.cpp.

◆ cardStyle()

GuiShapeStyle GuiTheme::cardStyle ( ) const

A raised card: gradient surface, outline, drop shadow; a glowing accent outline when focused.

Definition at line 46 of file GuiTheme.cpp.

◆ chipStyle()

GuiShapeStyle GuiTheme::chipStyle ( ) const

A small label background (a "chip")

Definition at line 84 of file GuiTheme.cpp.

◆ current()

GuiTheme & GuiTheme::current ( )
static

The theme the rest of the library reads. Starts as the default dark theme.

Definition at line 35 of file GuiTheme.cpp.

◆ panelStyle()

GuiShapeStyle GuiTheme::panelStyle ( ) const

A quiet container: flat surface with a thin outline.

Definition at line 41 of file GuiTheme.cpp.

◆ rowStyle()

GuiShapeStyle GuiTheme::rowStyle ( ) const

A flat list row: invisible at rest, a gray bar when focused, tinted when pressed.

Definition at line 89 of file GuiTheme.cpp.

Member Data Documentation

◆ accent

PixelColor GuiTheme::accent

Highlight: focus outline, focused button.

Definition at line 23 of file GuiTheme.h.

◆ accentDark

PixelColor GuiTheme::accentDark

Pressed-button fill.

Definition at line 25 of file GuiTheme.h.

◆ accentLight

PixelColor GuiTheme::accentLight

Light end of the focused-button gradient.

Definition at line 24 of file GuiTheme.h.

◆ background

PixelColor GuiTheme::background

Screen background.

Definition at line 18 of file GuiTheme.h.

◆ good

PixelColor GuiTheme::good

Positive state (connected, charged).

Definition at line 29 of file GuiTheme.h.

◆ outline

PixelColor GuiTheme::outline

Quiet outlines.

Definition at line 21 of file GuiTheme.h.

◆ outlineStrong

PixelColor GuiTheme::outlineStrong

Resting button outline and fill.

Definition at line 22 of file GuiTheme.h.

◆ padding

float GuiTheme::padding

Space inside a card.

Definition at line 34 of file GuiTheme.h.

◆ radius

float GuiTheme::radius

Corner radius of cards and panels.

Definition at line 32 of file GuiTheme.h.

◆ shadowBlur

float GuiTheme::shadowBlur

Softness of a resting card's shadow.

Definition at line 36 of file GuiTheme.h.

◆ spacing

float GuiTheme::spacing

Gap between siblings.

Definition at line 35 of file GuiTheme.h.

◆ strokeWidth

float GuiTheme::strokeWidth

Outline width.

Definition at line 33 of file GuiTheme.h.

◆ surface

PixelColor GuiTheme::surface

Panels and resting cards.

Definition at line 19 of file GuiTheme.h.

◆ surfaceRaised

PixelColor GuiTheme::surfaceRaised

Lighter end of a card's gradient, chips.

Definition at line 20 of file GuiTheme.h.

◆ text

PixelColor GuiTheme::text

Primary text.

Definition at line 26 of file GuiTheme.h.

◆ textMuted

PixelColor GuiTheme::textMuted

Secondary text.

Definition at line 27 of file GuiTheme.h.

◆ textOnAccent

PixelColor GuiTheme::textOnAccent

Text drawn over the accent color.

Definition at line 28 of file GuiTheme.h.


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