void GuiThemeInit(GuiTheme &theme)
Fills in every color and metric of the theme.
A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest)....
Colors, metrics and the style recipes built from them.
GuiShapeStyle cardStyle() const
A raised card: gradient surface, outline, drop shadow; a glowing accent outline when focused.
int glyphFontSize
Font size of a one-character letter on a glyph, in pixels.
uint8_t cardDisabledAlpha
Opacity of a disabled card.
float glyphSize
Width and height of a round glyph (face button, D-pad arrow, stick, +, -, home).
float padding
Space inside a card.
float buttonGlowBlur
Softness of a focused button's glow.
PixelColor text
Primary text.
PixelColor surface
Panels and resting cards.
PixelColor highlight
Selected row or list item (a light tint on a light theme).
uint8_t rowPressAlpha
Opacity of a pressed list row's accent tint.
PixelColor good
Positive state (connected, charged).
GuiShapeStyle panelStyle() const
A quiet container: flat surface with a thin outline.
float buttonStrokeLight
How far (0..1) a focused or pressed button's outline is lightened toward white.
PixelColor outline
Quiet outlines.
uint8_t focusGlowAlpha
Peak opacity of a focused card's glow.
uint8_t pressGlowAlpha
Peak opacity of a pressed card's glow.
GuiShapeStyle chipStyle() const
A small label background (a "chip")
static GuiTheme & current()
The theme the rest of the library reads. The first call fills it in with GuiThemeInit().
float glowGrow
How much wider (blur and spread) a focused card's glow is than its shadow.
PixelColor accentLight
Light end of the focused-button gradient.
PixelColor textInverse
Ink drawn over a text-colored fill (the letter or symbol on a glyph badge).
PixelColor accent
Highlight: focus outline, focused button.
int glyphFontSizeSmall
Font size of a longer letter on a glyph ("ZL", "ZR").
float spacing
Gap between siblings.
float barDarken
How far (0..1) a bar's fill is darkened from the background toward black.
PixelColor shadow
Drop shadow of a resting card; its alpha is the peak opacity.
float strokeWidth
Outline width.
PixelColor textMuted
Secondary text.
GuiShapeStyle buttonStyle() const
A capsule or rounded button: lights up in the accent color when focused, darkens when pressed.
PixelColor outlineStrong
Resting button outline and fill.
PixelColor surfaceRaised
Lighter end of a card's gradient, chips.
GuiShapeStyle barStyle() const
A dark strip for a hint or status bar.
GuiTheme()
Every field zero. Nothing here is a look: GuiThemeInit() provides it.
float radius
Corner radius of cards and panels.
uint8_t buttonDisabledAlpha
Opacity of a disabled button.
PixelColor accentDark
Pressed-button fill.
float glyphBumperHeight
Height of a bumper glyph.
GuiShapeStyle rowStyle() const
A flat list row: invisible at rest, a gray bar when focused, tinted when pressed.
PixelColor background
Screen background.
PixelColor mark
What is being edited or pointed at (a control on a controller picture and the line to it).
uint8_t buttonGlowAlpha
Peak opacity of a focused button's glow.
float shadowOffsetY
How far a resting card's shadow falls.
float glyphBumperWidth
Width of a bumper glyph (L, R, ZL, ZR).
float shadowBlur
Softness of a resting card's shadow.
PixelColor textOnAccent
Text drawn over the accent color.
8-bit-per-channel RGBA color used by the video interfaces.