Various fixes

This commit is contained in:
Ilya Laktyushin
2022-05-25 16:35:51 +04:00
parent 73ec0c7a23
commit a01fe7a603
2 changed files with 5 additions and 1 deletions

View File

@@ -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),

View File

@@ -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)
}