mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Conference calls
This commit is contained in:
parent
b90065451b
commit
2393424bde
22 changed files with 579 additions and 136 deletions
|
|
@ -692,6 +692,9 @@ public class ContactsPeerItemNode: ItemListRevealOptionsItemNode {
|
|||
|
||||
public func updateIsHighlighted(transition: ContainedViewLayoutTransition) {
|
||||
var reallyHighlighted = self.isHighlighted
|
||||
if let item = self.item, !item.enabled {
|
||||
reallyHighlighted = false
|
||||
}
|
||||
let highlightProgress: CGFloat = self.item?.itemHighlighting?.progress ?? 1.0
|
||||
if let item = self.item {
|
||||
switch item.peer {
|
||||
|
|
@ -1649,6 +1652,9 @@ public class ContactsPeerItemNode: ItemListRevealOptionsItemNode {
|
|||
actionButtonNode.setImage(actionButton.image, for: .normal)
|
||||
transition.updateFrame(node: actionButtonNode, frame: CGRect(origin: CGPoint(x: revealOffset + params.width - params.rightInset - 12.0 - actionButtonImage.size.width - offset, y: floor((nodeLayout.contentSize.height - actionButtonImage.size.height) / 2.0)), size: actionButtonImage.size))
|
||||
|
||||
actionButtonNode.isEnabled = item.enabled
|
||||
actionButtonNode.alpha = item.enabled ? 1.0 : 0.4
|
||||
|
||||
offset += actionButtonImage.size.width + 12.0
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue