Atlas Engine
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

text: UIStyle;

image

image: UIStyle;

textField

textField: UIStyle;

button

button: UIStyle;

checkbox

checkbox: UIStyle;

row

row: UIStyle;

column

column: UIStyle;

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;

On this page