ThemeColor
Contents
[
Hide
]ThemeColor class
Represents a theme color.
class ThemeColor;
Constructors
Name | Description |
---|---|
constructor(ThemeColorType, number) |
Methods
Method | Description |
---|---|
getColorType() | Gets and sets the theme type. |
setColorType(ThemeColorType) | Gets and sets the theme type. |
getTint() | Gets and sets the tint value. |
setTint(number) | Gets and sets the tint value. |
constructor(ThemeColorType, number)
constructor(type: ThemeColorType, tint: number);
Parameters:
Parameter | Type | Description |
---|---|---|
type | ThemeColorType | The theme type. |
tint | number | The tint value. |
getColorType()
Gets and sets the theme type.
getColorType() : ThemeColorType;
Returns
setColorType(ThemeColorType)
Gets and sets the theme type.
setColorType(value: ThemeColorType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | ThemeColorType | The value to set. |
getTint()
Gets and sets the tint value.
getTint() : number;
Remarks
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.
setTint(number)
Gets and sets the tint value.
setTint(value: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
Remarks
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.