ThemeStyle
class in package klyn.gui.windows.themes

    public class ThemeStyle:

ThemeStyle

Computed visual style used by `klyn.gui.windows`.

Instances are produced from KSS rules and then consumed by widget painters.

    style = ThemeStyle()
    style.backgroundColor = Color.parse("#3B8ED0")
    style.cornerRadius = 6

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | accentColor `accentColor as Color = null` | No summary.
public property | alternateRowColor `alternateRowColor as Color = null` | Alternate row or inactive item background color.
public property | backgroundColor `backgroundColor as Color = null` | No summary.
public property | backgroundColor2 `backgroundColor2 as Color = null` | No summary.
public property | borderColor `borderColor as Color = null` | No summary.
public property | borderWidth `borderWidth as Double = -1.0` | No summary.
public property | caretColor `caretColor as Color = null` | No summary.
public property | cornerRadius `cornerRadius as Int = -1` | No summary.
public property | focusRingColor `focusRingColor as Color = null` | Focus outline color shared by keyboard-focusable widgets.
public property | font `font as String = ""` | No summary.
public property | inactiveSelectionColor `inactiveSelectionColor as Color = null` | Selection color used when the owning widget does not have focus.
public property | marginBottom `marginBottom as Int = -1` | No summary.
public property | marginLeft `marginLeft as Int = -1` | No summary.
public property | marginRight `marginRight as Int = -1` | No summary.
public property | marginTop `marginTop as Int = -1` | No summary.
public property | mutedColor `mutedColor as Color = null` | Muted foreground color for secondary labels and icons.
public property | overlayColor `overlayColor as Color = null` | Modal overlay color used by `LightBox`.
public property | paddingBottom `paddingBottom as Int = -1` | No summary.
public property | paddingLeft `paddingLeft as Int = -1` | No summary.
public property | paddingRight `paddingRight as Int = -1` | No summary.
public property | paddingTop `paddingTop as Int = -1` | No summary.
public property | paddingX `paddingX as Int = -1` | No summary.
public property | paddingY `paddingY as Int = -1` | No summary.
public property | placeholderColor `placeholderColor as Color = null` | No summary.
public property | scrollbarActiveThumbColor `scrollbarActiveThumbColor as Color = null` | Scrollbar thumb color while dragging.
public property | scrollbarThumbColor `scrollbarThumbColor as Color = null` | Scrollbar thumb color used by custom-painted widgets.
public property | scrollbarTrackColor `scrollbarTrackColor as Color = null` | Scrollbar track color used by custom-painted widgets.
public property | selectionColor `selectionColor as Color = null` | No summary.
public property | shadowBlur `shadowBlur as Double = -1.0` | No summary.
public property | shadowColor `shadowColor as Color = null` | No summary.
public property | shadowOffsetX `shadowOffsetX as Double = 0.0` | No summary.
public property | shadowOffsetY `shadowOffsetY as Double = 0.0` | No summary.
public property | textColor `textColor as Color = null` | No summary.
public property | trackFillColor `trackFillColor as Color = null` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | clone `clone() as ThemeStyle:` | Creates a deep copy of the style.
public | merge `merge(other as ThemeStyle) as Void:` | Overlays another style on top of the current one.
public override | toString `toString() as String:` | No summary.