mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix profile gift cover pattern color
This commit is contained in:
parent
0485aed646
commit
7b441c74f4
@ -457,7 +457,7 @@ public final class PeerInfoCoverComponent: Component {
|
||||
]
|
||||
} else if case let .status(status) = component.subject, case let .starGift(_, _, _, _, _, _, _, patternColorValue, _) = status.content {
|
||||
let patternColor = UIColor(rgb: UInt32(bitPattern: patternColorValue))
|
||||
self.avatarBackgroundPatternContentsLayer.compositingFilter = "overlayBlendMode"
|
||||
self.avatarBackgroundPatternContentsLayer.compositingFilter = nil
|
||||
self.avatarBackgroundPatternContentsLayer.colors = [
|
||||
patternColor.withAlphaComponent(0.6).cgColor,
|
||||
patternColor.withAlphaComponent(0.0).cgColor
|
||||
|
Loading…
x
Reference in New Issue
Block a user