diff --git a/submodules/PeerInfoUI/Sources/IncreaseLimitHeaderItem.swift b/submodules/PeerInfoUI/Sources/IncreaseLimitHeaderItem.swift index 721af4b8b4..97ef96afc5 100644 --- a/submodules/PeerInfoUI/Sources/IncreaseLimitHeaderItem.swift +++ b/submodules/PeerInfoUI/Sources/IncreaseLimitHeaderItem.swift @@ -145,7 +145,7 @@ class IncreaseLimitHeaderItemNode: ListViewItemNode { let size = strongSelf.hostView.update( transition: .immediate, component: AnyComponent(PremiumLimitDisplayComponent( - inactiveColor: UIColor(rgb: 0xe3e3e9), + inactiveColor: item.theme.list.itemBlocksSeparatorColor.withAlphaComponent(0.5), activeColors: [ UIColor(rgb: 0x0077ff), UIColor(rgb: 0x6b93ff), diff --git a/submodules/PremiumUI/Sources/PremiumLimitScreen.swift b/submodules/PremiumUI/Sources/PremiumLimitScreen.swift index 15c8ae590c..c660b7e8a9 100644 --- a/submodules/PremiumUI/Sources/PremiumLimitScreen.swift +++ b/submodules/PremiumUI/Sources/PremiumLimitScreen.swift @@ -113,6 +113,7 @@ private class PremiumLimitAnimationComponent: Component { self.activeBackground = SimpleLayer() self.badgeView = UIView() + self.badgeView.alpha = 0.0 self.badgeView.layer.anchorPoint = CGPoint(x: 0.5, y: 1.0) self.badgeMaskBackgroundView = UIView() @@ -203,6 +204,9 @@ private class PremiumLimitAnimationComponent: Component { self.badgeView.layer.add(rotateAnimation, forKey: "appearance2") self.badgeView.layer.add(returnAnimation, forKey: "appearance3") + self.badgeView.alpha = 1.0 + self.badgeView.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.1) + if let badgeText = component.badgeText { self.badgeCountLabel.configure(with: badgeText) }