Update dark chat theme

This commit is contained in:
Ilya Laktyushin 2021-09-03 01:09:28 +03:00
parent 38f640cf47
commit 55f464f19d

View File

@ -35,8 +35,8 @@ public func customizePresentationTheme(_ theme: PresentationTheme, specialMode:
public func makePresentationTheme(settings: TelegramThemeSettings, specialMode: Bool = false, title: String? = nil, serviceBackgroundColor: UIColor? = nil) -> PresentationTheme? {
var baseTheme: TelegramBaseTheme = settings.baseTheme
if specialMode && baseTheme == .night {
baseTheme = .tinted
if specialMode && baseTheme == .tinted {
baseTheme = .night
}
let defaultTheme = makeDefaultPresentationTheme(reference: PresentationBuiltinThemeReference(baseTheme: baseTheme), extendingThemeReference: nil, serviceBackgroundColor: serviceBackgroundColor, preview: false)
return customizePresentationTheme(defaultTheme, specialMode: specialMode, editing: true, title: title, accentColor: UIColor(argb: settings.accentColor), backgroundColors: [], bubbleColors: settings.messageColors, animateBubbleColors: settings.animateMessageColors, wallpaper: settings.wallpaper)