themeProperty
The theme generated by buildTheme. GlokSettings.defaultTheme is typically bound to this property, so that whenever any of this ThemeBuilder's properties change, the entire application will be re-themed.
If you wish, you can use a different theme for individual Scenes. In which case, you would bind Scene.theme to this property. This feature is very rarely used.
Initially, the theme is empty (it has no rules), and therefore you should set it within the init
section of each concrete implementation of ThemeBuilder :
init {
theme = buildTheme()
}
Content copied to clipboard