mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Glass
This commit is contained in:
parent
0431273d7f
commit
ca6fdc1629
100 changed files with 539 additions and 286 deletions
|
|
@ -15,11 +15,14 @@ import TelegramCallsUI
|
|||
import AttachmentUI
|
||||
import WebUI
|
||||
import LegacyChatHeaderPanelComponent
|
||||
import ComponentFlow
|
||||
import ComponentDisplayAdapters
|
||||
|
||||
func updateChatPresentationInterfaceStateImpl(
|
||||
selfController: ChatControllerImpl,
|
||||
transition: ContainedViewLayoutTransition,
|
||||
interactive: Bool,
|
||||
force: Bool,
|
||||
saveInterfaceState: Bool,
|
||||
_ f: (ChatPresentationInterfaceState) -> ChatPresentationInterfaceState,
|
||||
completion externalCompletion: @escaping (ContainedViewLayoutTransition) -> Void
|
||||
|
|
@ -606,5 +609,23 @@ func updateChatPresentationInterfaceStateImpl(
|
|||
}
|
||||
}
|
||||
|
||||
if let chatTitleContent = selfController.contentData?.state.chatTitleContent {
|
||||
var titleTransition = ComponentTransition(transition)
|
||||
if case .messageOptions = selfController.subject {
|
||||
titleTransition = titleTransition.withAnimation(.none)
|
||||
}
|
||||
selfController.chatTitleView?.update(
|
||||
context: selfController.context,
|
||||
theme: selfController.presentationData.theme,
|
||||
preferClearGlass: selfController.presentationInterfaceState.preferredGlassType == .clear,
|
||||
wallpaper: selfController.presentationInterfaceState.chatWallpaper,
|
||||
strings: selfController.presentationData.strings,
|
||||
dateTimeFormat: selfController.presentationData.dateTimeFormat,
|
||||
nameDisplayOrder: selfController.presentationData.nameDisplayOrder,
|
||||
content: chatTitleContent,
|
||||
transition: titleTransition
|
||||
)
|
||||
}
|
||||
|
||||
selfController.stateUpdated?(transition)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue