mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-25 22:52:12 +00:00
android, desktop: fix applying theme when no global theme edited yet (#4735)
This commit is contained in:
committed by
GitHub
parent
519dd9e219
commit
073818db55
@@ -49,7 +49,9 @@ object ThemeManager {
|
||||
return perUserTheme
|
||||
}
|
||||
val defaultTheme = defaultActiveTheme(appSettingsTheme)
|
||||
return ThemeModeOverride(colors = defaultTheme?.colors ?: ThemeColors(), wallpaper = defaultTheme?.wallpaper)
|
||||
return ThemeModeOverride(colors = defaultTheme?.colors ?: ThemeColors(), wallpaper = defaultTheme?.wallpaper
|
||||
// Situation when user didn't change global theme at all (it is not saved yet). Using defaults
|
||||
?: ThemeWallpaper.from(PresetWallpaper.SCHOOL.toType(CurrentColors.value.base), null, null))
|
||||
}
|
||||
|
||||
fun currentColors(themeOverridesForType: WallpaperType?, perChatTheme: ThemeModeOverride?, perUserTheme: ThemeModeOverrides?, appSettingsTheme: List<ThemeOverrides>): ActiveTheme {
|
||||
|
||||
Reference in New Issue
Block a user