Class BaseTheme

The base class for Widget and Theme. The backbone of the theming system.

Hierarchy

Implements

Constructors

Properties

_accentFill?: FillStyle

See accentFill. For internal use only.

_backgroundFill?: FillStyle

See backgroundFill. For internal use only.

_backgroundGlowFill?: FillStyle

See backgroundGlowFill. For internal use only.

_blinkRate?: number

See blinkRate. For internal use only.

_bodyTextAlign?: number

See bodyTextAlign. For internal use only.

_bodyTextFill?: FillStyle

See bodyTextFill. For internal use only.

_bodyTextFont?: string

See bodyTextFont. For internal use only.

_bodyTextHeight?: null | number

See bodyTextHeight. For internal use only.

_bodyTextSpacing?: null | number

See bodyTextSpacing. For internal use only.

_canvasFill?: FillStyle

See canvasFill. For internal use only.

_checkboxInnerPadding?: number

See checkboxInnerPadding. For internal use only.

_checkboxLength?: number

See checkboxLength. For internal use only.

_containerAlignment?: Alignment2D

See containerAlignment. For internal use only.

_containerPadding?: Padding

See containerPadding. For internal use only.

_cursorThickness?: number

See cursorThickness. For internal use only.

_fallbackTheme?: Theme
_inputBackgroundFill?: FillStyle

See inputBackgroundFill. For internal use only.

_inputSelectBackgroundFill?: FillStyle

See inputSelectBackgroundFill. For internal use only.

_inputTextAlign?: number

See inputTextAlign. For internal use only.

_inputTextFill?: FillStyle

See inputTextFill. For internal use only.

_inputTextFillDisabled?: FillStyle

See inputTextFillDisabled. For internal use only.

_inputTextFillInvalid?: FillStyle

See inputTextFillInvalid. For internal use only.

_inputTextFont?: string

See inputTextFont. For internal use only.

_inputTextHeight?: null | number

See inputTextHeight. For internal use only.

_inputTextInnerPadding?: number

See inputTextInnerPadding. For internal use only.

_inputTextMinWidth?: number

See inputTextMinWidth. For internal use only.

_inputTextSpacing?: null | number

See inputTextSpacing. For internal use only.

_multiContainerAlignment?: FlexAlignment2D

See multiContainerAlignment. For internal use only.

_multiContainerSpacing?: number

See multiContainerSpacing. For internal use only.

_primaryFill?: FillStyle

See primaryFill. For internal use only.

_radioButtonInnerPadding?: number

See radioButtonInnerPadding. For internal use only.

_radioButtonLength?: number

See radioButtonLength. For internal use only.

_scrollBarMinPercent?: number

See scrollBarMinPercent. For internal use only.

_scrollBarMinPixels?: number

See scrollBarMinPixels. For internal use only.

_scrollBarThickness?: number

See scrollBarThickness. For internal use only.

_sliderMinLength?: number

See sliderMinLength. For internal use only.

_sliderThickness?: number

See sliderThickness. For internal use only.

listener: null | ((property: null | string) => void) = null

Listener for theme fallback

Accessors

  • get bodyTextHeight(): null | number
  • The height of each line of text in body text (most regular text). If null, it will be automatically detected.

    Returns null | number

  • set bodyTextHeight(value: undefined | null | number): void
  • The height of each line of text in body text (most regular text). If null, it will be automatically detected.

    Parameters

    • value: undefined | null | number

    Returns void

  • get bodyTextSpacing(): null | number
  • The spacing between each line of text in body text (most regular text). If null, it will be automatically detected.

    Returns null | number

  • set bodyTextSpacing(value: undefined | null | number): void
  • The spacing between each line of text in body text (most regular text). If null, it will be automatically detected.

    Parameters

    • value: undefined | null | number

    Returns void

  • get fallbackTheme(): undefined | Theme
  • The fallback theme. If this theme has a missing property, the fallback theme's property will be used instead. This will automatically (un)subscribe to/from the fallback theme.

    Returns undefined | Theme

  • set fallbackTheme(newTheme: undefined | Theme): void
  • Parameters

    • newTheme: undefined | Theme

    Returns void

Methods

  • Called when the fallback theme changes. Does nothing by default.

    Parameters

    • property: null | string = null

      The property name of the theme property that was updated. If a general theme update, then this will be null and all theme properties should be treated as changed.

    Returns void

Generated using TypeDoc