Companion

Properties

Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
val current: ColorMode

The current color mode.

Link copied to clipboard
@get:Composable
val currentState: MutableState<ColorMode>

The current color mode, exposed as a MutableState so that you can change it and have the UI update.

Link copied to clipboard

Returns the system color preference (which represents the user's device color preference).

Functions

Link copied to clipboard
fun ColorMode.Companion.loadFromLocalStorage(key: String = DEFAULT_COLOR_MODE_STORAGE_KEY_NAME): ColorMode?