mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Upgraded navigation
This commit is contained in:
@@ -61,6 +61,13 @@ extension PeekControllerTheme {
|
||||
|
||||
public extension NavigationControllerTheme {
|
||||
convenience init(presentationTheme: PresentationTheme) {
|
||||
self.init(navigationBar: NavigationBarTheme(rootControllerTheme: presentationTheme), emptyAreaColor: presentationTheme.chatList.backgroundColor)
|
||||
let navigationStatusBar: NavigationStatusBarStyle
|
||||
switch presentationTheme.rootController.statusBarStyle {
|
||||
case .black:
|
||||
navigationStatusBar = .black
|
||||
case .white:
|
||||
navigationStatusBar = .white
|
||||
}
|
||||
self.init(statusBar: navigationStatusBar, navigationBar: NavigationBarTheme(rootControllerTheme: presentationTheme), emptyAreaColor: presentationTheme.chatList.backgroundColor)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user