ThemeColor

ThemeColor class

Represents a theme color.

Constructors

NameDescription
ThemeColor

Properties

NameTypeDescription
ColorTypeNumberGets and sets the theme type. The value of the property is ThemeColorType integer constant.
TintNumberGets and sets the tint value. The tint value is stored as a double from -1.0 .. 1.0, where -1.0 means 100% darken and 1.

ThemeColor(type, tint)

ParameterTypeDescription
typeNumberA ThemeColorType value. The theme type.
tintNumberThe tint value.

ThemeColor.ColorType property

Gets and sets the theme type. The value of the property is ThemeColorType integer constant.

Type: Number

ThemeColor.Tint property

Gets and sets the tint value. The tint value is stored as a double from -1.0 .. 1.0, where -1.0 means 100% darken and 1.0 means 100% lighten. Also, 0.0 means no change.

Type: Number