mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various fixes
This commit is contained in:
@@ -247,12 +247,15 @@ open class ViewControllerComponentContainer: ViewController {
|
||||
|> deliverOnMainQueue).start(next: { [weak self] presentationData in
|
||||
if let strongSelf = self {
|
||||
var theme = presentationData.theme
|
||||
|
||||
var resolvedTheme = resolveTheme(baseTheme: presentationData.theme, theme: strongSelf.theme)
|
||||
if case .modal = presentationMode {
|
||||
theme = theme.withModalBlocksBackground()
|
||||
resolvedTheme = resolvedTheme.withModalBlocksBackground()
|
||||
}
|
||||
|
||||
strongSelf.node.presentationData = presentationData.withUpdated(theme: theme)
|
||||
strongSelf.node.resolvedTheme = resolveTheme(baseTheme: presentationData.theme, theme: strongSelf.theme)
|
||||
strongSelf.node.resolvedTheme = resolvedTheme
|
||||
|
||||
switch statusBarStyle {
|
||||
case .none:
|
||||
|
||||
Reference in New Issue
Block a user