setState

fun <S : Drawable> S.setState(state: Byte): S

Set the palette of this drawable according to one of the three possible component states in PolyUI.

Parameters

state

the state to set. One of DANGER/0 (red), WARNING/1 (yellow), SUCCESS/2 (green).