Main project builds

This commit is contained in:
Ali
2020-02-19 16:59:06 +04:00
parent 4140b000e1
commit cce22d7f0b
33 changed files with 109 additions and 42 deletions

View File

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