theme property

ThemeTokens get theme

The document's theme the controls draw with (over SSUI's defaults: render/controls/tokens.dart): the component registry's theme (the project's, as the screen shows it) when the tree has one, else the one set here. A change re-applies the boxes that drew with it.

Implementation

api.ThemeTokens get theme => components?.theme ?? _theme;
set theme (ThemeTokens value)

Implementation

set theme(api.ThemeTokens value) {
  if (value == _theme) return;
  _theme = value;
  _themeChanged();
}