mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Adjust blur
This commit is contained in:
parent
92043f0241
commit
c2c042ea48
@ -600,7 +600,8 @@ public final class PeerAvatarBottomShadowNode: ASDisplayNode {
|
||||
return UIColor(white: 1.0, alpha: 1.0).cgColor
|
||||
} else {
|
||||
let step: CGFloat = CGFloat(i - firstStep) / CGFloat(numSteps - firstStep - 1)
|
||||
return UIColor(white: 1.0, alpha: baseGradientAlpha * (1.0 - pow(step, 3.0))).cgColor
|
||||
let value: CGFloat = 1.0 - bezierPoint(0.42, 0.0, 0.58, 1.0, step)
|
||||
return UIColor(white: 1.0, alpha: baseGradientAlpha * value).cgColor
|
||||
}
|
||||
}
|
||||
self.backgroundGradientMaskLayer.locations = (0 ..< numSteps).map { i -> NSNumber in
|
||||
|
@ -1106,7 +1106,7 @@ final class PeerInfoHeaderNode: ASDisplayNode {
|
||||
|
||||
var bottomShadowHeight: CGFloat = 88.0
|
||||
if !self.isSettings {
|
||||
bottomShadowHeight += 90.0
|
||||
bottomShadowHeight += 110.0
|
||||
}
|
||||
let bottomShadowFrame = CGRect(origin: CGPoint(x: 0.0, y: expandedAvatarHeight - bottomShadowHeight), size: CGSize(width: width, height: bottomShadowHeight))
|
||||
transition.updateFrame(node: self.avatarListNode.listContainerNode.bottomShadowNode, frame: bottomShadowFrame, beginWithCurrentState: true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user