API Referencegraphite
Theme
Shared default styles for UI element types, with access to the current theme.
Module: graphite
Shared default styles for UI element types, with access to the current theme.
Declaration
export class Theme { ... }Properties
text
The text.
text: UIStyle;image
The image.
image: UIStyle;textField
The text field.
textField: UIStyle;button
The button.
button: UIStyle;checkbox
The checkbox.
checkbox: UIStyle;row
The row.
row: UIStyle;column
The column.
column: UIStyle;stack
The stack.
stack: UIStyle;Methods
current
Returns the current shared UI theme.
static current(): Theme;set
Replaces the current shared UI theme.
static set(theme: Theme): void;reset
Restores the default UI theme.
static reset(): void;