mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Video call improvements
This commit is contained in:
@@ -31,6 +31,13 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
|
||||
var appearance: Appearance
|
||||
var image: Image
|
||||
var isEnabled: Bool
|
||||
|
||||
init(appearance: Appearance, image: Image, isEnabled: Bool = true) {
|
||||
self.appearance = appearance
|
||||
self.image = image
|
||||
self.isEnabled = isEnabled
|
||||
}
|
||||
}
|
||||
|
||||
private let contentContainer: ASDisplayNode
|
||||
@@ -107,6 +114,9 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
self.effectView.isHidden = true
|
||||
}
|
||||
|
||||
self.alpha = content.isEnabled ? 1.0 : 0.7
|
||||
self.isUserInteractionEnabled = content.isEnabled
|
||||
|
||||
let contentImage = generateImage(CGSize(width: self.largeButtonSize, height: self.largeButtonSize), contextGenerator: { size, context in
|
||||
context.clear(CGRect(origin: CGPoint(), size: size))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user