Theme improvements

This commit is contained in:
Ilya Laktyushin
2019-12-10 21:16:09 +04:00
parent 7d05d1f521
commit 05a3f563e9
11 changed files with 147 additions and 62 deletions

View File

@@ -486,7 +486,7 @@ public func themeSettingsController(context: AccountContext, focusOnItemTag: The
themeSpecificAccentColors[currentTheme.index] = color
if case let .builtin(theme) = currentTheme, theme == .dayClassic || theme == .nightAccent {
if let wallpaper = current.themeSpecificChatWallpapers[currentTheme.index], wallpaper.isColorOrGradient {
if let wallpaper = current.themeSpecificChatWallpapers[currentTheme.index], wallpaper.isColorOrGradient || wallpaper.isBuiltin {
themeSpecificChatWallpapers[currentTheme.index] = nil
}
}