ThemeColor

ThemeColor class

Represents a theme color.

Constructors

NameDescription
ThemeColor

Properties

NameTypeDescription
ColorTypeintGets and sets the theme type. The value of the property is ThemeColorType integer constant.
TintfloatGets 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
typeintA ThemeColorType value. The theme type.
tintfloatThe tint value.

ThemeColor.ColorType property

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

Type: int

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: float