mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
3defa0121e
3 changed files with 6 additions and 2 deletions
|
|
@ -3977,10 +3977,10 @@ public final class PremiumIntroScreen: ViewControllerComponentContainer {
|
|||
shareLinkImpl?(link)
|
||||
}
|
||||
), navigationBarAppearance: .default, presentationMode: modal ? .modal : .default, theme: forceDark ? .dark : .default, updatedPresentationData: screenContext.updatedPresentationData)
|
||||
|
||||
self._hasGlassStyle = true
|
||||
|
||||
if modal {
|
||||
let cancelItem = UIBarButtonItem(title: presentationData.strings.Common_Close, style: .plain, target: self, action: #selector(self.cancelPressed))
|
||||
self.navigationItem.setLeftBarButton(cancelItem, animated: false)
|
||||
self.navigationPresentation = .modal
|
||||
} else {
|
||||
self.navigationPresentation = .modalInLargeLayout
|
||||
|
|
|
|||
|
|
@ -13654,6 +13654,8 @@ public final class PeerInfoScreenImpl: ViewController, PeerInfoScreen, KeyShortc
|
|||
badgeTextColor: baseNavigationBarPresentationData.theme.badgeTextColor
|
||||
), strings: baseNavigationBarPresentationData.strings))
|
||||
|
||||
self._hasGlassStyle = true
|
||||
|
||||
self.navigationBar?.enableAutomaticBackButton = false
|
||||
|
||||
if isSettings || isMyProfile {
|
||||
|
|
|
|||
|
|
@ -723,6 +723,8 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||
|
||||
super.init(context: context, navigationBarPresentationData: navigationBarPresentationData)
|
||||
|
||||
self._hasGlassStyle = true
|
||||
|
||||
self.automaticallyControlPresentationContextLayout = false
|
||||
self.blocksBackgroundWhenInOverlay = true
|
||||
self.acceptsFocusWhenInOverlay = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue