Fix theme selection on theme selection preference screen

This commit is contained in:
MM20 2024-01-28 22:54:17 +01:00
parent e7b3920c69
commit da12d03460
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -47,11 +47,11 @@ class ThemesSettingsScreenVM : ViewModel(), KoinComponent {
}
fun selectTheme(theme: Theme) {
when(theme.id) {
uiSettings.setTheme(when(theme.id) {
DefaultThemeId -> ThemeDescriptor.Default
BlackAndWhiteThemeId -> ThemeDescriptor.BlackAndWhite
else -> ThemeDescriptor.Custom(theme.id.toString())
}
})
}
fun duplicate(theme: Theme) {