9static PixelColor rgb(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255)
24 text(rgb(232, 237, 244)),
27 good(rgb(63, 208, 176)),
48 GuiPaint rest = GuiPaint()
51 .shadow(
shadowBlur, rgb(0, 0, 0, 150), 0.0f, 4.0f);
52 GuiPaint lit = GuiPaint()
56 GuiPaint pressed = GuiPaint()
60 GuiPaint off = GuiPaint()
63 return GuiShapeStyle(rest).onFocus(lit).onPress(pressed).onDisable(off);
68 GuiPaint rest = GuiPaint()
71 GuiPaint lit = GuiPaint()
75 GuiPaint pressed = GuiPaint()
78 GuiPaint off = GuiPaint()
81 return GuiShapeStyle(rest).onFocus(lit).onPress(pressed).onDisable(off);
93 return GuiShapeStyle(GuiPaint()).onFocus(lit).onPress(pressed);
PixelColor GuiMixColor(PixelColor a, PixelColor b, float t)
Blends two colors per channel (alpha included): t = 0 gives a, t = 1 gives b.
A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest)....
GuiShapeStyle cardStyle() const
A raised card: gradient surface, outline, drop shadow; a glowing accent outline when focused.
float padding
Space inside a card.
PixelColor text
Primary text.
PixelColor surface
Panels and resting cards.
PixelColor good
Positive state (connected, charged).
GuiShapeStyle panelStyle() const
A quiet container: flat surface with a thin outline.
PixelColor outline
Quiet outlines.
GuiShapeStyle chipStyle() const
A small label background (a "chip")
static GuiTheme & current()
The theme the rest of the library reads. Starts as the default dark theme.
PixelColor accentLight
Light end of the focused-button gradient.
PixelColor accent
Highlight: focus outline, focused button.
float spacing
Gap between siblings.
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()
The default dark theme.
float radius
Corner radius of cards and panels.
PixelColor accentDark
Pressed-button fill.
GuiShapeStyle rowStyle() const
A flat list row: invisible at rest, a gray bar when focused, tinted when pressed.
PixelColor background
Screen background.
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.