UiColor

A packed ARGB colour for a status item's text. Immutable.

Without a colour the built-in bar draws an item in its own colour (white, or the app palette), like the stock items. A colour set here is global: it applies in every HMI context and does not follow the palette. Only the text takes it; an item's icon keeps its own colour rules (OWN_COLOURS).

Functions

Link copied to clipboard
open fun argb(): Int
The packed 0xAARRGGBB value.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun of(argb: Int): UiColor
The colour packed as 0xAARRGGBB.
Link copied to clipboard
open fun rgb(r: Int, g: Int, b: Int): UiColor
An opaque colour: red, green and blue, each 0..255.
Link copied to clipboard
open fun rgba(r: Int, g: Int, b: Int, a: Int): UiColor
A colour with alpha: red, green, blue and alpha, each 0..255.
Link copied to clipboard
open fun toString(): String