public class ThemeManager:
Central access point for klyn.gui.windows themes.
light, dark and system are reserved appearance modes used by the built-in themes. Application-specific themes can be registered with any other normalized name without replacing the built-in theme slots.
ThemeManager.setAppearanceMode(ThemeManager.MODE_SYSTEM)
| Modifier and Type | Member | Description |
|---|---|---|
| public static readonly | MODE_DARKMODE_DARK as String = "dark" |
No summary. |
| public static readonly | MODE_LIGHTMODE_LIGHT as String = "light" |
No summary. |
| public static readonly | MODE_SYSTEMMODE_SYSTEM as String = "system" |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | appearanceModeappearanceMode() as String: |
Returns the configured global appearance mode. |
| public static | applyStyleapplyStyle(widget as Widget) as Void: |
Applies layout-related KSS metrics to a widget. |
| public static | applyStyleTreeapplyStyleTree(widget as Widget) as Void: |
Applies KSS layout metrics recursively. |
| public static | effectiveAppearanceMode | Resolves `system` into `light` or `dark`. |
| public static | resolveStyleresolveStyle(widget as Widget) as ThemeStyle: |
Resolves the current style for a widget. |
| public static | setAppearanceModesetAppearanceMode(mode as String) as Void: |
Sets the global appearance mode used by windows that keep the default. |
| public static | setTheme | Registers a loaded KSS theme. |
| public static | setThemeFromFile | Loads a KSS file and installs it for the requested mode or theme name. |
| public static | theme | Returns the active theme for the requested mode or custom theme name. |