Kitto.Html.ThemeSwitcher
KittoX theme switcher controller. Renders a 3-button toggle group (Light / Auto / Dark) that lets the end user override the configured theme. The choice is persisted in localStorage per KittoX AppName via the companion kxtheme.js module; an inline boot script emitted by TKWebApplication applies the saved value before the CSS paints, so the page never flashes the wrong theme.
The switcher renders only when Config.yaml declares Theme: Auto UserSelection: True With Theme: Light/Dark explicit, the admin has fixed the theme and this controller emits nothing (no surprising client-side override).
Drop in any layout via YAML: Controller: ThemeSwitcher Typical placements: Login view (BorderPanel SouthView), Home dashboard near the auth panel, or a topbar slot.
TKXThemeSwitcherController class
Controller that renders the Light/Auto/Dark theme switcher toggle group. Emits markup only when Config.yaml enables user theme selection (Theme: Auto + UserSelection: True). Registered as controller type 'ThemeSwitcher'.
function Render: string;Renders the Light/Auto/Dark theme switcher control.
