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 readonly property | contentZoomcontentZoom as Double: |
Current runtime content zoom factor applied on top of KSS metrics. |
| public static readonly property | contentZoomRevisioncontentZoomRevision as Int: |
Monotonic revision incremented only when the runtime content zoom changes. |
| public static readonly property | fontZoomfontZoom as Double: |
Backward-compatible alias for contentZoom. |
| public static readonly property | revisionrevision as Int: |
Monotonic revision incremented when the active theme configuration changes. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | adjustContentZoom | Adjusts the runtime content zoom by wheel steps. |
| public static | adjustFontZoom | Backward-compatible alias for adjustContentZoom. |
| 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 | resetContentZoomresetContentZoom() as Boolean: |
Resets the runtime content zoom to the default factor. |
| public static | resetFontZoomresetFontZoom() as Boolean: |
Backward-compatible alias for resetContentZoom. |
| public static | resolveStyleresolveStyle(widget as Widget) as ThemeStyle: |
Resolves the current style for a widget. |
| public static | scaleMetric | Scales a floating-point metric with the current content zoom. |
| public static | scaleMetric | Scales an integer metric with the current content zoom. |
| 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. |