mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix peer info header button color
This commit is contained in:
parent
b51d1a2de8
commit
341b03372b
@ -64,6 +64,12 @@ final class PeerInfoHeaderNavigationButtonContainerNode: SparseNode {
|
||||
accumulatedRightButtonOffset -= 6.0
|
||||
}
|
||||
}
|
||||
for (key, button) in self.rightButtonNodes {
|
||||
if !self.currentRightButtons.contains(where: { $0.key == key }) {
|
||||
button.updateContentsColor(backgroundColor: self.backgroundContentColor, contentsColor: self.contentsColor, canBeExpanded: canBeExpanded, transition: transition)
|
||||
transition.updateSublayerTransformOffset(layer: button.layer, offset: CGPoint(x: 0.0, y: 0.0))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func update(size: CGSize, presentationData: PresentationData, leftButtons: [PeerInfoHeaderNavigationButtonSpec], rightButtons: [PeerInfoHeaderNavigationButtonSpec], expandFraction: CGFloat, shouldAnimateIn: Bool, transition: ContainedViewLayoutTransition) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user