mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Voice Chat UI fixes
This commit is contained in:
@@ -14,7 +14,7 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
enum Color: Equatable {
|
||||
case red
|
||||
case green
|
||||
case custom(UInt32)
|
||||
case custom(UInt32, CGFloat)
|
||||
}
|
||||
|
||||
case blurred(isFilled: Bool)
|
||||
@@ -197,8 +197,8 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
fillColor = UIColor(rgb: 0xd92326)
|
||||
case .green:
|
||||
fillColor = UIColor(rgb: 0x74db58)
|
||||
case let .custom(color):
|
||||
fillColor = UIColor(rgb: color)
|
||||
case let .custom(color, alpha):
|
||||
fillColor = UIColor(rgb: color, alpha: alpha)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
fillColor = UIColor(rgb: 0xd92326).withMultipliedBrightnessBy(0.2).withAlphaComponent(0.2)
|
||||
case .green:
|
||||
fillColor = UIColor(rgb: 0x74db58).withMultipliedBrightnessBy(0.2).withAlphaComponent(0.2)
|
||||
case let .custom(color):
|
||||
case let .custom(color, alpha):
|
||||
fillColor = UIColor(rgb: color).withMultipliedBrightnessBy(0.2).withAlphaComponent(0.2)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user