mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Update
This commit is contained in:
@@ -492,7 +492,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
|
||||
|
||||
self.textInputContainer = ASDisplayNode()
|
||||
self.textInputContainer.view.addSubview(self.textInputContainerBackgroundView)
|
||||
self.textInputContainer.clipsToBounds = true
|
||||
self.textInputContainer.clipsToBounds = false
|
||||
|
||||
self.textInputNodeClippingContainer = ASDisplayNode()
|
||||
self.textInputNodeClippingContainer.clipsToBounds = true
|
||||
|
||||
@@ -346,10 +346,10 @@ public final class GlassBackgroundView: UIView {
|
||||
glassEffect.isInteractive = false
|
||||
let nativeView = UIVisualEffectView(effect: glassEffect)
|
||||
self.nativeView = nativeView
|
||||
//nativeView.overrideUserInterfaceStyle = .light
|
||||
//nativeView.traitOverrides.userInterfaceStyle = .light
|
||||
self.foregroundView = UIImageView()
|
||||
//self.foregroundView = nil
|
||||
nativeView.overrideUserInterfaceStyle = .light
|
||||
nativeView.traitOverrides.userInterfaceStyle = .light
|
||||
//self.foregroundView = UIImageView()
|
||||
self.foregroundView = nil
|
||||
} else {
|
||||
self.backgroundNode = NavigationBackgroundNode(color: .black, enableBlur: true, customBlurRadius: 5.0)
|
||||
self.nativeView = nil
|
||||
@@ -408,18 +408,18 @@ public final class GlassBackgroundView: UIView {
|
||||
if self.params != params {
|
||||
self.params = params
|
||||
|
||||
/*if let nativeView {
|
||||
if #available(iOS 26.0, *) {
|
||||
let glassEffect = UIGlassEffect(style: .regular)
|
||||
glassEffect.tintColor = tintColor
|
||||
glassEffect.isInteractive = false
|
||||
|
||||
nativeView.effect = glassEffect
|
||||
}
|
||||
}*/
|
||||
|
||||
if let foregroundView = self.foregroundView {
|
||||
foregroundView.image = generateForegroundImage(size: CGSize(width: cornerRadius * 2.0, height: cornerRadius * 2.0), isDark: isDark, fillColor: tintColor)
|
||||
} else {
|
||||
if let nativeView {
|
||||
if #available(iOS 26.0, *) {
|
||||
let glassEffect = UIGlassEffect(style: .regular)
|
||||
//glassEffect.tintColor = tintColor.withMultipliedAlpha(0.1)
|
||||
glassEffect.isInteractive = false
|
||||
|
||||
nativeView.effect = glassEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1145,7 +1145,7 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
navigationModalFrame.update(layout: layout, transition: transition)
|
||||
navigationModalFrame.updateDismissal(transition: transition, progress: 1.0 - self.inputPanelContainerNode.expansionFraction, additionalProgress: 0.0, completion: {})
|
||||
|
||||
self.inputPanelClippingNode.clipsToBounds = true
|
||||
self.inputPanelClippingNode.clipsToBounds = false
|
||||
transition.updateCornerRadius(node: self.inputPanelClippingNode, cornerRadius: self.inputPanelContainerNode.expansionFraction * 10.0)
|
||||
} else {
|
||||
if let navigationModalFrame = self.navigationModalFrame {
|
||||
@@ -1154,7 +1154,7 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
navigationModalFrame?.removeFromSupernode()
|
||||
})
|
||||
}
|
||||
self.inputPanelClippingNode.clipsToBounds = true
|
||||
self.inputPanelClippingNode.clipsToBounds = false
|
||||
transition.updateCornerRadius(node: self.inputPanelClippingNode, cornerRadius: 0.0, completion: { [weak self] completed in
|
||||
guard let strongSelf = self, completed else {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user