Voice Chat UI fixes

This commit is contained in:
Ilya Laktyushin
2020-12-16 18:18:16 +04:00
parent be4f069f1b
commit 3d062fff78
3 changed files with 8 additions and 8 deletions

View File

@@ -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)
}
}