klyn.gui.windows.themes.ThemeManager.setThemeFromFile
method

    public static setThemeFromFile(mode as String, path as Object) as Void:

Description

Loads a KSS file and installs it for the requested mode or theme name.

Use this at application startup, before creating windows, so layout metrics derived from font and padding declarations are applied from the first layout pass.

    ThemeManager.setThemeFromFile("harbor", "themes/harbor.kss")
    ThemeManager.setAppearanceMode("harbor")