Docs (4.0.0)
class GlobalContext property

theme

The current theme, an instance of UITheme.

theme?: UITheme

Notes

  • The theme instance can be modified, or a new instance can be created in advance.
  • Changing indidivual theme properties may not update the UI immediately. Use app.renderer.remount() to force a full re-render, or set the theme property to a new instance.
  • Refer to UITheme for available properties and methods of app.theme.

Related

  • class GlobalContextA singleton class that represents the global application state.
  • class UIThemeA collection of default style options, colors, animations, effects, and icons, part of the global application context.