mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various UI fixes
This commit is contained in:
@@ -785,13 +785,14 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
|||||||
self.addSubnode(self.recentListNode)
|
self.addSubnode(self.recentListNode)
|
||||||
self.addSubnode(self.listNode)
|
self.addSubnode(self.listNode)
|
||||||
self.addSubnode(self.mediaNode)
|
self.addSubnode(self.mediaNode)
|
||||||
self.addSubnode(self.shimmerNode)
|
|
||||||
self.addSubnode(self.mediaAccessoryPanelContainer)
|
|
||||||
|
|
||||||
self.addSubnode(self.emptyResultsAnimationNode)
|
self.addSubnode(self.emptyResultsAnimationNode)
|
||||||
self.addSubnode(self.emptyResultsTitleNode)
|
self.addSubnode(self.emptyResultsTitleNode)
|
||||||
self.addSubnode(self.emptyResultsTextNode)
|
self.addSubnode(self.emptyResultsTextNode)
|
||||||
|
|
||||||
|
self.addSubnode(self.shimmerNode)
|
||||||
|
self.addSubnode(self.mediaAccessoryPanelContainer)
|
||||||
|
|
||||||
let searchContext = Promise<ChatListSearchMessagesContext?>(nil)
|
let searchContext = Promise<ChatListSearchMessagesContext?>(nil)
|
||||||
let searchContextValue = self.searchContextValue
|
let searchContextValue = self.searchContextValue
|
||||||
let updateSearchContext: ((ChatListSearchMessagesContext?) -> (ChatListSearchMessagesContext?, Bool)) -> Void = { f in
|
let updateSearchContext: ((ChatListSearchMessagesContext?) -> (ChatListSearchMessagesContext?, Bool)) -> Void = { f in
|
||||||
|
|||||||
@@ -242,13 +242,16 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if image != nil {
|
if image != nil {
|
||||||
strongSelf.removePlaceholder(animated: !firstTime)
|
|
||||||
if firstTime {
|
if firstTime {
|
||||||
strongSelf.animationNode?.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2)
|
strongSelf.animationNode?.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.3, completion: { [weak self] _ in
|
||||||
}
|
self?.removePlaceholder(animated: false)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
strongSelf.removePlaceholder(animated: true)
|
||||||
}
|
}
|
||||||
firstTime = false
|
firstTime = false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self.imageNode.displaysAsynchronously = false
|
self.imageNode.displaysAsynchronously = false
|
||||||
self.containerNode.addSubnode(self.contextSourceNode)
|
self.containerNode.addSubnode(self.contextSourceNode)
|
||||||
|
|||||||
@@ -64,13 +64,16 @@ class ChatMessageStickerItemNode: ChatMessageItemView {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if image != nil {
|
if image != nil {
|
||||||
strongSelf.removePlaceholder(animated: !firstTime)
|
|
||||||
if firstTime {
|
if firstTime {
|
||||||
strongSelf.imageNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2)
|
strongSelf.imageNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.3, completion: { [weak self] _ in
|
||||||
}
|
self?.removePlaceholder(animated: false)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
strongSelf.removePlaceholder(animated: true)
|
||||||
}
|
}
|
||||||
firstTime = false
|
firstTime = false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self.containerNode.shouldBegin = { [weak self] location in
|
self.containerNode.shouldBegin = { [weak self] location in
|
||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
|
|||||||
Reference in New Issue
Block a user