feat(#232): dynamic light/dark theme switch without restart

This commit is contained in:
Hy4ri
2026-06-21 12:33:57 +03:00
parent 7ce19cd52c
commit 78da6af6be
3 changed files with 10 additions and 5 deletions
@@ -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) {