KssTheme
class in package klyn.gui.windows.themes

    public class KssTheme:

KssTheme

Small CSS-like theme used by `klyn.gui.windows`.

Supported selectors are widget types, optional `.className` suffixes and the pseudo states `:hover`, `:focus`, `:pressed` and `:disabled`. Variables can be declared in `:root` with CSS-compatible custom property names and consumed with `var(--name, fallback)`. Supported declarations include the main CSS names `color`, `background`, `font-family`, `font-size`, `margin` and `padding`, plus Klyn-specific aliases such as `accent-color`, `corner-radius`, `border-width`, `focus-ring-color`, `inactive-selection-color` and scrollbar colors.

    theme = KssTheme.load(FilePath(Path.klynHome, "lib", "klyn", "gui", "windows", "themes", "light.kss"))

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | name `name as String` | No summary.
public property | sourcePath `sourcePath as String` | No summary.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | KssTheme `KssTheme(name as String = "", sourcePath as String = ""):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | load `load(path as Object) as KssTheme:` | Loads a theme from a `.kss` file.
public | resolve `resolve(widget as Widget) as ThemeStyle:` | Resolves the effective style for a widget.