Package-level declarations

Types

Link copied to clipboard
open class AppColour(val light: Color, val dark: Color = light)

Encapsulates light and dark mode colours. If dark colour isn't provided, defaults to light in dark mode.

Properties

Link copied to clipboard

Default value for is dark mode active when a composable is not wrapped in local AppColourMode.

Functions

Link copied to clipboard
fun AppColourMode(modifier: Modifier = Modifier, content: @Composable (modifier: Modifier) -> Unit)

Wrapper composable that allows accessing current light/dark mode in the UI tree using LocalIsDarkModeActive.current. This wrapper should be used if accessing AppColour in the composition tree.