Class: Theme

ui.Theme

new ui.Theme ()

Element representing the default UI theme. Custom themes derive from this element.

Properties:
Name Type Description
primaryColor html.Color

The primary foreground (text) color.

primaryBackgroundColor html.Color

The primary background color.

secondaryColor html.Color

The secondary foreground (text) color.

secondaryBackgroundColor html.Color

The secondary background color.

highlightColor html.Color

The color for highlighted text.

highlightBackgroundColor html.Color

The highlighted background color.

hoverBackgroundColor html.Color

The hover-highlighted background color (usually less strong than highlightBackgroundColor).

disabledColor html.Color

The color for disabled text.

contentBackgroundColor html.Color

The color for content areas, such as list views.

contentAltBackgroundColor html.Color

The alternating color for content areas, e.g. for alternating backgrounds in a list view.

borderColor html.Color

The color for UI borders.

borderRadius number

The radius of rounded UI borders.

itemWidthSmall number

The width of small UI items.

itemWidthMedium number

The width of medium UI items.

itemWidthLarge number

The width of large UI items.

itemHeightSmall number

The height of small UI items.

itemHeightMedium number

The height of medium UI items.

itemHeightLarge number

The height of large UI items.

paddingSmall number

A small amount of padding between UI items.

paddingMedium number

A medium amount of padding between UI items.

paddingLarge number

A large amount of padding between UI items.

fontSizeSmall number

The font size for small text.

fontSizeMedium number

The font size for regular text.

fontSizeLarge number

The font size for large text.

Extends