ThemeDialogContent

fun ThemeDialogContent(themeState: MutableState<ThemeEnum> = themePrefs.themeState, writePref: (ThemeEnum) -> Unit = themePrefs.preferenceHelper.let { it::themeEnum::set }, dismissDialog: () -> Unit = {})

Dialog layout for selecting a theme. Represents a separate screen. Should use in the dialog destination that will be hosted within a androidx.compose.ui.window.Dialog.

Parameters

themeState

MutableState of the current theme.

writePref

Function to write the selected theme to preferences.

dismissDialog

Function to dismiss the dialog.