feat(#232): dynamic light/dark theme switch without restart
This commit is contained in:
@@ -119,6 +119,7 @@ class SettingsViewModel : ViewModel() {
|
||||
|
||||
fun onThemeChange(theme: ThemePreference) {
|
||||
_uiState.update { it.copy(themePreference = theme, isSaved = false) }
|
||||
AuthManager.setThemePreference(theme)
|
||||
}
|
||||
|
||||
fun onTypingEffectEnabledChange(enabled: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user