theme

fun theme(context: Context): Theme

Returns the Theme configured for the specified colorScheme, or the default theme if none is specified or the specified color scheme does not exist.

If a dark theme has been defined and a color scheme of .dark is requested, the dark theme will be returned instead of the default theme.

Parameters

context

: The application context


A Theme object for pre-built UIs.