mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
[WIP] Video chat screen V2
This commit is contained in:
@@ -273,17 +273,19 @@ open class ViewControllerComponentContainer: ViewController {
|
||||
theme = theme.withModalBlocksBackground()
|
||||
resolvedTheme = resolvedTheme.withModalBlocksBackground()
|
||||
}
|
||||
|
||||
let presentationData = presentationData.withUpdated(theme: theme)
|
||||
|
||||
strongSelf.node.presentationData = presentationData.withUpdated(theme: theme)
|
||||
strongSelf.node.presentationData = presentationData
|
||||
strongSelf.node.resolvedTheme = resolvedTheme
|
||||
|
||||
|
||||
switch statusBarStyle {
|
||||
case .none:
|
||||
strongSelf.statusBar.statusBarStyle = .Hide
|
||||
case .ignore:
|
||||
strongSelf.statusBar.statusBarStyle = .Ignore
|
||||
case .default:
|
||||
strongSelf.statusBar.statusBarStyle = presentationData.theme.rootController.statusBarStyle.style
|
||||
strongSelf.statusBar.statusBarStyle = resolvedTheme.rootController.statusBarStyle.style
|
||||
}
|
||||
|
||||
let navigationBarPresentationData: NavigationBarPresentationData?
|
||||
@@ -305,13 +307,14 @@ open class ViewControllerComponentContainer: ViewController {
|
||||
}
|
||||
}).strict()
|
||||
|
||||
let resolvedTheme = resolveTheme(baseTheme: presentationData.theme, theme: self.theme)
|
||||
switch statusBarStyle {
|
||||
case .none:
|
||||
self.statusBar.statusBarStyle = .Hide
|
||||
case .ignore:
|
||||
self.statusBar.statusBarStyle = .Ignore
|
||||
case .default:
|
||||
self.statusBar.statusBarStyle = presentationData.theme.rootController.statusBarStyle.style
|
||||
self.statusBar.statusBarStyle = resolvedTheme.rootController.statusBarStyle.style
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user