mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Main project builds
This commit is contained in:
@@ -273,15 +273,7 @@ private final class NavigationButtonItemNode: ImmediateTextNode {
|
||||
}
|
||||
|
||||
if shouldChangeHighlight {
|
||||
if let imageNode = self.imageNode {
|
||||
let previousAlpha = self.imageRippleNode.alpha
|
||||
self.imageRippleNode.alpha = highlighted ? 1.0 : 0.0
|
||||
if !highlighted {
|
||||
self.imageRippleNode.layer.animateAlpha(from: previousAlpha, to: self.imageRippleNode.alpha, duration: 0.25)
|
||||
}
|
||||
} else {
|
||||
self.alpha = !self.isEnabled ? 1.0 : (highlighted ? 0.4 : 1.0)
|
||||
}
|
||||
self.alpha = !self.isEnabled ? 1.0 : (highlighted ? 0.4 : 1.0)
|
||||
self.highlightChanged(highlighted)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user