mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 03:10:47 +00:00
Fixed build
This commit is contained in:
parent
42d99e399a
commit
21ad9b9ca2
@ -259,19 +259,7 @@ public func currentPresentationDataAndSettings(accountManager: AccountManager) -
|
||||
}
|
||||
|
||||
let effectiveAccentColor = themeSettings.themeSpecificAccentColors[effectiveTheme.index]?.color ?? defaultDayAccentColor
|
||||
switch effectiveTheme {
|
||||
case let .builtin(reference):
|
||||
switch reference {
|
||||
case .dayClassic:
|
||||
themeValue = defaultPresentationTheme
|
||||
case .day:
|
||||
themeValue = makeDefaultDayPresentationTheme(accentColor: effectiveAccentColor, serviceBackgroundColor: defaultServiceBackgroundColor)
|
||||
case .night:
|
||||
themeValue = makeDarkPresentationTheme(accentColor: effectiveAccentColor)
|
||||
case .nightAccent:
|
||||
themeValue = makeDarkAccentPresentationTheme(accentColor: effectiveAccentColor)
|
||||
}
|
||||
}
|
||||
themeValue = makePresentationTheme(themeReference: effectiveTheme, accentColor: effectiveAccentColor, serviceBackgroundColor: defaultServiceBackgroundColor)
|
||||
|
||||
if effectiveTheme != themeSettings.theme {
|
||||
switch effectiveChatWallpaper {
|
||||
@ -536,20 +524,7 @@ public func updatedPresentationData(accountManager: AccountManager, applicationI
|
||||
|
||||
let effectiveAccentColor = themeSettings.themeSpecificAccentColors[effectiveTheme.index]?.color ?? defaultDayAccentColor
|
||||
|
||||
let themeValue: PresentationTheme
|
||||
switch effectiveTheme {
|
||||
case let .builtin(reference):
|
||||
switch reference {
|
||||
case .dayClassic:
|
||||
themeValue = makeDefaultDayPresentationTheme(serviceBackgroundColor: serviceBackgroundColor)
|
||||
case .night:
|
||||
themeValue = makeDarkPresentationTheme(accentColor: effectiveAccentColor)
|
||||
case .nightAccent:
|
||||
themeValue = makeDarkAccentPresentationTheme(accentColor: effectiveAccentColor)
|
||||
case .day:
|
||||
themeValue = makeDefaultDayPresentationTheme(accentColor: effectiveAccentColor, serviceBackgroundColor: serviceBackgroundColor)
|
||||
}
|
||||
}
|
||||
let themeValue = makePresentationTheme(themeReference: effectiveTheme, accentColor: effectiveAccentColor, serviceBackgroundColor: serviceBackgroundColor)
|
||||
|
||||
if effectiveTheme != themeSettings.theme && themeSettings.themeSpecificChatWallpapers[effectiveTheme.index] == nil {
|
||||
switch effectiveChatWallpaper {
|
||||
|
@ -356,7 +356,7 @@ func openChatMessage(context: AccountContext, message: Message, standalone: Bool
|
||||
return nil
|
||||
}))
|
||||
case let .theme(media):
|
||||
let controller = ThemePreviewController(context: context, previewTheme: makeDefaultDayPresentationTheme(accentColor: nil, serviceBackgroundColor: .black), media: .message(message: MessageReference(message), media: media))
|
||||
let controller = ThemePreviewController(context: context, previewTheme: makeDefaultDayPresentationTheme(accentColor: nil, serviceBackgroundColor: .black, day: true), media: .message(message: MessageReference(message), media: media))
|
||||
present(controller, ViewControllerPresentationArguments(presentationAnimation: .modalSheet))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user