ThemeManager
classin packageklyn.gui.windows.themes
public class ThemeManager:
ThemeManager
Central access point for the built-in `klyn.gui.windows` themes.
ThemeManager.setAppearanceMode(ThemeManager.MODE_SYSTEM)
Fields
Modifier and Type Member Description
public static readonly MODE_DARK
MODE_DARK as String = "dark"
No summary.
public static readonly MODE_LIGHT
MODE_LIGHT as String = "light"
No summary.
public static readonly MODE_SYSTEM
MODE_SYSTEM as String = "system"
No summary.
Methods
Modifier and Type Member Description
public static appearanceMode
appearanceMode() as String:
Returns the configured global appearance mode.
public static effectiveAppearanceMode
effectiveAppearanceMode(mode as String = null) as String:
Resolves `system` into `light` or `dark`.
public static resolveStyle
resolveStyle(widget as Widget) as ThemeStyle:
Resolves the current style for a widget.
public static setAppearanceMode
setAppearanceMode(mode as String) as Void:
Sets the global appearance mode used by windows that keep the default.
public static theme
theme(mode as String = null) as KssTheme:
Returns the active built-in theme for the requested mode.