mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix build
This commit is contained in:
@@ -1478,20 +1478,13 @@ private class QrContentNode: ASDisplayNode {
|
||||
|
||||
self.wallpaperBackgroundNode.update(wallpaper: wallpaper)
|
||||
|
||||
if isDarkAppearance && selectedEmoticon == defaultEmoticon {
|
||||
self.codeForegroundDimNode.alpha = 1.0
|
||||
} else {
|
||||
self.codeForegroundDimNode.alpha = isDarkAppearance ? 0.4 : 0.3
|
||||
}
|
||||
self.codeForegroundDimNode.alpha = isDarkAppearance ? 0.5 : 0.3
|
||||
|
||||
if self.codeForegroundContentNode == nil, let contentNode = self.wallpaperBackgroundNode.makeDimmedNode() {
|
||||
contentNode.frame = CGRect(origin: CGPoint(x: -self.codeForegroundNode.frame.minX, y: -self.codeForegroundNode.frame.minY), size: self.wallpaperBackgroundNode.frame.size)
|
||||
self.codeForegroundContentNode = contentNode
|
||||
self.codeForegroundNode.insertSubnode(contentNode, at: 0)
|
||||
}
|
||||
if isDarkAppearance && selectedEmoticon == defaultEmoticon, let codeForegroundContentNode = self.codeForegroundContentNode {
|
||||
codeForegroundContentNode.removeFromSupernode()
|
||||
self.codeForegroundContentNode = nil
|
||||
}
|
||||
}
|
||||
|
||||
func updateLayout(size: CGSize, topInset: CGFloat, bottomInset: CGFloat, transition: ContainedViewLayoutTransition) {
|
||||
|
||||
Reference in New Issue
Block a user