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. | |
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.
| GuiTheme::GuiTheme | ( | ) |
The default dark theme.
Definition at line 15 of file GuiTheme.cpp.
| GuiShapeStyle GuiTheme::barStyle | ( | ) | const |
A dark strip for a hint or status bar.
Definition at line 96 of file GuiTheme.cpp.
| 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.
| 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.
| GuiShapeStyle GuiTheme::chipStyle | ( | ) | const |
A small label background (a "chip")
Definition at line 84 of file GuiTheme.cpp.
|
static |
The theme the rest of the library reads. Starts as the default dark theme.
Definition at line 35 of file GuiTheme.cpp.
| GuiShapeStyle GuiTheme::panelStyle | ( | ) | const |
A quiet container: flat surface with a thin outline.
Definition at line 41 of file GuiTheme.cpp.
| 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.
| PixelColor GuiTheme::accent |
Highlight: focus outline, focused button.
Definition at line 23 of file GuiTheme.h.
| PixelColor GuiTheme::accentDark |
Pressed-button fill.
Definition at line 25 of file GuiTheme.h.
| PixelColor GuiTheme::accentLight |
Light end of the focused-button gradient.
Definition at line 24 of file GuiTheme.h.
| PixelColor GuiTheme::background |
Screen background.
Definition at line 18 of file GuiTheme.h.
| PixelColor GuiTheme::good |
Positive state (connected, charged).
Definition at line 29 of file GuiTheme.h.
| PixelColor GuiTheme::outline |
Quiet outlines.
Definition at line 21 of file GuiTheme.h.
| PixelColor GuiTheme::outlineStrong |
Resting button outline and fill.
Definition at line 22 of file GuiTheme.h.
| float GuiTheme::padding |
Space inside a card.
Definition at line 34 of file GuiTheme.h.
| float GuiTheme::radius |
Corner radius of cards and panels.
Definition at line 32 of file GuiTheme.h.
| float GuiTheme::shadowBlur |
Softness of a resting card's shadow.
Definition at line 36 of file GuiTheme.h.
| float GuiTheme::spacing |
Gap between siblings.
Definition at line 35 of file GuiTheme.h.
| float GuiTheme::strokeWidth |
Outline width.
Definition at line 33 of file GuiTheme.h.
| PixelColor GuiTheme::surface |
Panels and resting cards.
Definition at line 19 of file GuiTheme.h.
| PixelColor GuiTheme::surfaceRaised |
Lighter end of a card's gradient, chips.
Definition at line 20 of file GuiTheme.h.
| PixelColor GuiTheme::text |
Primary text.
Definition at line 26 of file GuiTheme.h.
| PixelColor GuiTheme::textMuted |
Secondary text.
Definition at line 27 of file GuiTheme.h.
| PixelColor GuiTheme::textOnAccent |
Text drawn over the accent color.
Definition at line 28 of file GuiTheme.h.