mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-28 06:49:37 +00:00
Various fixes
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user