mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 11:25:38 +00:00
Use new gradient bubbles
This commit is contained in:
parent
8f7931417b
commit
27c01681e1
@ -602,6 +602,7 @@ final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgroundNode
|
|||||||
super.init()
|
super.init()
|
||||||
|
|
||||||
self.view.addSubview(portalView.view)
|
self.view.addSubview(portalView.view)
|
||||||
|
self.clipsToBounds = true
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
@ -818,7 +819,7 @@ final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgroundNode
|
|||||||
if #available(iOS 12.0, *) {
|
if #available(iOS 12.0, *) {
|
||||||
let blurredBackgroundPortalSourceView = PortalSourceView()
|
let blurredBackgroundPortalSourceView = PortalSourceView()
|
||||||
self.blurredBackgroundPortalSourceView = blurredBackgroundPortalSourceView
|
self.blurredBackgroundPortalSourceView = blurredBackgroundPortalSourceView
|
||||||
blurredBackgroundPortalSourceView.alpha = 0.0001
|
blurredBackgroundPortalSourceView.alpha = 0.0
|
||||||
self.view.addSubview(blurredBackgroundPortalSourceView)
|
self.view.addSubview(blurredBackgroundPortalSourceView)
|
||||||
|
|
||||||
let blurredBackgroundContentView = UIImageView()
|
let blurredBackgroundContentView = UIImageView()
|
||||||
@ -827,12 +828,12 @@ final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgroundNode
|
|||||||
|
|
||||||
let incomingBackgroundPortalSourceView = PortalSourceView()
|
let incomingBackgroundPortalSourceView = PortalSourceView()
|
||||||
self.incomingBackgroundPortalSourceView = incomingBackgroundPortalSourceView
|
self.incomingBackgroundPortalSourceView = incomingBackgroundPortalSourceView
|
||||||
incomingBackgroundPortalSourceView.alpha = 0.00001
|
incomingBackgroundPortalSourceView.alpha = 0.0
|
||||||
self.view.addSubview(incomingBackgroundPortalSourceView)
|
self.view.addSubview(incomingBackgroundPortalSourceView)
|
||||||
|
|
||||||
let outgoingBackgroundPortalSourceView = PortalSourceView()
|
let outgoingBackgroundPortalSourceView = PortalSourceView()
|
||||||
self.outgoingBackgroundPortalSourceView = outgoingBackgroundPortalSourceView
|
self.outgoingBackgroundPortalSourceView = outgoingBackgroundPortalSourceView
|
||||||
outgoingBackgroundPortalSourceView.alpha = 0.00001
|
outgoingBackgroundPortalSourceView.alpha = 0.0
|
||||||
self.view.addSubview(outgoingBackgroundPortalSourceView)
|
self.view.addSubview(outgoingBackgroundPortalSourceView)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1423,7 +1424,7 @@ final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgroundNode
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG && false
|
#if true
|
||||||
var sourceView: PortalSourceView?
|
var sourceView: PortalSourceView?
|
||||||
switch type {
|
switch type {
|
||||||
case .free:
|
case .free:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user