klyn.gui.windows.MainWindow.applyTheme
method

    public override applyTheme(mode as String = null) as Void:

Description

Applies the active KSS theme to the complete window tree.

This is the safe entry point for hot theme switching. It invalidates the cached layout metrics before relayout, so menu bars, dock panes, tab pages, modal lightboxes and custom widgets all repaint from the same theme revision.

    win.applyTheme(ThemeManager.MODE_LIGHT)