ThemeModePicker
fun ThemeModePicker(selectedMode: String, onSelected: (mode: String) -> Unit, modifier: Modifier = Modifier)(source)
The theme mode choice: light, dark and follow system, each a card with a preview of the mode. The theme settings page and the onboarding theme page both show it. A stored mode that is neither light nor dark, including a blank one, selects follow system.
Parameters
selectedMode
The stored DataStoreNamesConstants.THEME_MODE_* key.
onSelected
Called with the key of the card the user picked.