colorIfAbsent

abstract infix fun colorIfAbsent(color: Int): Styler

Sets the color using an integer RGB value if no color is currently set.

Return

this Styler instance for chaining

Parameters

color

the color as an integer (e.g., 0xRRGGBB)


abstract infix fun colorIfAbsent(color: TextColor): Styler

Sets the text color if no color is currently set.

Return

this Styler instance for chaining

Parameters

color

the text color to apply


abstract infix fun colorIfAbsent(hex: String): Styler

Sets the color using a hexadecimal string if no color is currently set.

Return

this Styler instance for chaining

Parameters

hex

the color as a hexadecimal string (e.g., "#RRGGBB" or "RRGGBB")