Package-level declarations

Functions

Link copied to clipboard
fun Color.Companion.fromRGBAHexStringOrNull(rgba: String): Color?

Converts a RGBA formatted color #RRGGBBAA hex string to a Color; e.g., #FFFFFF1A (a translucent white).

Link copied to clipboard
fun Color.isDark(): Boolean

Heuristically determines if the color can be thought of as "dark".

Link copied to clipboard
inline fun Modifier.thenIf(precondition: Boolean, action: Modifier.() -> Modifier): Modifier

Conditionally applies the action to the receiver Modifier, if precondition is true. Returns the receiver as-is otherwise.

Link copied to clipboard
fun Color.toRgbaHexString(): String

Converts a Color to a RGBA formatted color #RRGGBBAA hex string; e.g., #FFFFFF1A (a translucent white).

Converts a java.awt.Color to a RGBA formatted color #RRGGBBAA hex string; e.g., #FFFFFF1A (a translucent white).