Various theme improvements

This commit is contained in:
Ilya Laktyushin
2021-09-07 11:44:46 +03:00
parent 7998f29f4e
commit e5f15bf084
5 changed files with 11 additions and 22 deletions

View File

@@ -179,7 +179,7 @@ final class ChatRecentActionsController: TelegramBaseController {
if let themeEmoticon = themeEmoticon, let theme = chatThemes.first(where: { $0.emoji == themeEmoticon }) {
let useDarkAppearance = presentationData.theme.overallDarkAppearance
let customTheme = useDarkAppearance ? theme.darkTheme : theme.theme
if let settings = customTheme.settings, let theme = makePresentationTheme(settings: settings, specialMode: true) {
if let settings = customTheme.settings, let theme = makePresentationTheme(settings: settings) {
presentationData = presentationData.withUpdated(theme: theme)
presentationData = presentationData.withUpdated(chatWallpaper: theme.chat.defaultWallpaper)
}