Theme

interface Theme

Themes are able to visually style Views within the Display. Installing one will trigger an update and provide the full set of Views to the Theme.install method, allowing it to update any subset of Views it chooses.

Inheritors

Functions

Link copied to clipboard
open fun deselected()

Called whenever a Theme is removed from ThemeManager.selected.

Link copied to clipboard
abstract fun install(view: View)

Called whenever a new View is added to a Scene this Theme has already been installed to.

abstract fun install(scene: Scene)

This allows the theme to update any of the Views and Displays within a Scene.

Link copied to clipboard
open fun selected()

Called whenever a Theme is set as ThemeManager.selected.

Inherited functions

Link copied to clipboard
operator fun Theme.plus(other: Theme): CompositeTheme