Merge commit '3d709ba5681a4bc751bfb75f525a6ce5a6deec46'

This commit is contained in:
Ali 2022-10-20 20:57:14 +04:00
commit dc9c076e45
2 changed files with 4 additions and 4 deletions

View File

@ -1732,7 +1732,7 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
if let inputNode = self.inputNode { if let inputNode = self.inputNode {
extensionValue = inputNode.topBackgroundExtension extensionValue = inputNode.topBackgroundExtension
} }
let apparentInputBackgroundFrame = CGRect(origin: .zero, size: CGSize(width: apparentInputBackgroundFrame.width, height: apparentInputBackgroundFrame.height + extensionValue)) let apparentInputBackgroundFrame = CGRect(origin: apparentInputBackgroundFrame.origin, size: CGSize(width: apparentInputBackgroundFrame.width, height: apparentInputBackgroundFrame.height + extensionValue))
var transition = transition var transition = transition
var delay: Double = 0.0 var delay: Double = 0.0
if apparentInputBackgroundFrame.height > inputPanelBackgroundContent.frame.height { if apparentInputBackgroundFrame.height > inputPanelBackgroundContent.frame.height {
@ -2271,12 +2271,12 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
navigationBarBackgroundContent.allowsGroupOpacity = true navigationBarBackgroundContent.allowsGroupOpacity = true
navigationBarBackgroundContent.implicitContentUpdate = false navigationBarBackgroundContent.implicitContentUpdate = false
navigationBarBackgroundContent.alpha = 0.2 navigationBarBackgroundContent.alpha = 0.3
self.navigationBar?.insertSubnode(navigationBarBackgroundContent, at: 1) self.navigationBar?.insertSubnode(navigationBarBackgroundContent, at: 1)
inputPanelBackgroundContent.allowsGroupOpacity = true inputPanelBackgroundContent.allowsGroupOpacity = true
inputPanelBackgroundContent.implicitContentUpdate = false inputPanelBackgroundContent.implicitContentUpdate = false
inputPanelBackgroundContent.alpha = 0.2 inputPanelBackgroundContent.alpha = 0.3
self.inputPanelBackgroundNode.addSubnode(inputPanelBackgroundContent) self.inputPanelBackgroundNode.addSubnode(inputPanelBackgroundContent)
} }
} }

View File

@ -130,7 +130,7 @@ class ChatHistoryNavigationButtonNode: ContextControllerSourceNode {
if let backgroundContent = backgroundNode.makeBubbleBackground(for: .free) { if let backgroundContent = backgroundNode.makeBubbleBackground(for: .free) {
backgroundContent.allowsGroupOpacity = true backgroundContent.allowsGroupOpacity = true
backgroundContent.clipsToBounds = true backgroundContent.clipsToBounds = true
backgroundContent.alpha = 0.2 backgroundContent.alpha = 0.3
backgroundContent.cornerRadius = 19.0 backgroundContent.cornerRadius = 19.0
backgroundContent.frame = self.backgroundNode.frame backgroundContent.frame = self.backgroundNode.frame
self.buttonNode.insertSubnode(backgroundContent, aboveSubnode: self.backgroundNode) self.buttonNode.insertSubnode(backgroundContent, aboveSubnode: self.backgroundNode)