libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GuiTheme.h
1/****************************************************************************
2 * libgui
3 * Daryl Borth 2026
4 * GuiTheme.h
5 *
6 * One place for the colors and metrics a code-drawn UI shares, and ready
7 * made styles built from them (card, panel, button, chip). Platform-agnostic.
8 * Metrics are design-canvas pixels.
9 ***************************************************************************/
10#pragma once
11#include "GuiPaint.h"
12
A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest)....
Definition GuiPaint.h:80
GuiShapeStyle cardStyle() const
A raised card: gradient surface, outline, drop shadow; a glowing accent outline when focused.
Definition GuiTheme.cpp:46
float padding
Space inside a card.
Definition GuiTheme.h:34
PixelColor text
Primary text.
Definition GuiTheme.h:26
PixelColor surface
Panels and resting cards.
Definition GuiTheme.h:19
PixelColor good
Positive state (connected, charged).
Definition GuiTheme.h:29
GuiShapeStyle panelStyle() const
A quiet container: flat surface with a thin outline.
Definition GuiTheme.cpp:41
PixelColor outline
Quiet outlines.
Definition GuiTheme.h:21
GuiShapeStyle chipStyle() const
A small label background (a "chip")
Definition GuiTheme.cpp:84
static GuiTheme & current()
The theme the rest of the library reads. Starts as the default dark theme.
Definition GuiTheme.cpp:35
PixelColor accentLight
Light end of the focused-button gradient.
Definition GuiTheme.h:24
PixelColor accent
Highlight: focus outline, focused button.
Definition GuiTheme.h:23
float spacing
Gap between siblings.
Definition GuiTheme.h:35
float strokeWidth
Outline width.
Definition GuiTheme.h:33
PixelColor textMuted
Secondary text.
Definition GuiTheme.h:27
GuiShapeStyle buttonStyle() const
A capsule or rounded button: lights up in the accent color when focused, darkens when pressed.
Definition GuiTheme.cpp:66
PixelColor outlineStrong
Resting button outline and fill.
Definition GuiTheme.h:22
PixelColor surfaceRaised
Lighter end of a card's gradient, chips.
Definition GuiTheme.h:20
GuiShapeStyle barStyle() const
A dark strip for a hint or status bar.
Definition GuiTheme.cpp:96
GuiTheme()
The default dark theme.
Definition GuiTheme.cpp:15
float radius
Corner radius of cards and panels.
Definition GuiTheme.h:32
PixelColor accentDark
Pressed-button fill.
Definition GuiTheme.h:25
GuiShapeStyle rowStyle() const
A flat list row: invisible at rest, a gray bar when focused, tinted when pressed.
Definition GuiTheme.cpp:89
PixelColor background
Screen background.
Definition GuiTheme.h:18
float shadowBlur
Softness of a resting card's shadow.
Definition GuiTheme.h:36
PixelColor textOnAccent
Text drawn over the accent color.
Definition GuiTheme.h:28
8-bit-per-channel RGBA color used by the video interfaces.
Definition Mesh.h:16