Skip to content

Commit 341b033

Browse files
author
Isaac
committed
Fix peer info header button color
1 parent b51d1a2 commit 341b033

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoHeaderNavigationButtonContainerNode.swift

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ final class PeerInfoHeaderNavigationButtonContainerNode: SparseNode {
6464
accumulatedRightButtonOffset -= 6.0
6565
}
6666
}
67+
for (key, button) in self.rightButtonNodes {
68+
if !self.currentRightButtons.contains(where: { $0.key == key }) {
69+
button.updateContentsColor(backgroundColor: self.backgroundContentColor, contentsColor: self.contentsColor, canBeExpanded: canBeExpanded, transition: transition)
70+
transition.updateSublayerTransformOffset(layer: button.layer, offset: CGPoint(x: 0.0, y: 0.0))
71+
}
72+
}
6773
}
6874

6975
func update(size: CGSize, presentationData: PresentationData, leftButtons: [PeerInfoHeaderNavigationButtonSpec], rightButtons: [PeerInfoHeaderNavigationButtonSpec], expandFraction: CGFloat, shouldAnimateIn: Bool, transition: ContainedViewLayoutTransition) {

0 commit comments

Comments
 (0)