update icons

pull/560/head
ryanzhao 3 years ago
parent 716378ccd3
commit 67f979e014

@ -116,19 +116,19 @@ final class CallVC : UIViewController, VideoPreviewDelegate {
private lazy var videoButton: UIButton = { private lazy var videoButton: UIButton = {
let result = UIButton(type: .custom) let result = UIButton(type: .custom)
let image = UIImage(named: "VideoCall")!.withTint(.white) let image = UIImage(named: "VideoCall")?.withRenderingMode(.alwaysTemplate)
result.setImage(image, for: UIControl.State.normal) result.setImage(image, for: UIControl.State.normal)
result.set(.width, to: 60) result.set(.width, to: 60)
result.set(.height, to: 60) result.set(.height, to: 60)
result.tintColor = .white
result.backgroundColor = UIColor(hex: 0x1F1F1F) result.backgroundColor = UIColor(hex: 0x1F1F1F)
result.layer.cornerRadius = 30 result.layer.cornerRadius = 30
result.alpha = 0.5
result.addTarget(self, action: #selector(operateCamera), for: UIControl.Event.touchUpInside) result.addTarget(self, action: #selector(operateCamera), for: UIControl.Event.touchUpInside)
return result return result
}() }()
private lazy var operationPanel: UIStackView = { private lazy var operationPanel: UIStackView = {
let result = UIStackView(arrangedSubviews: [videoButton, switchAudioButton, switchCameraButton]) let result = UIStackView(arrangedSubviews: [switchCameraButton, videoButton, switchAudioButton])
result.axis = .horizontal result.axis = .horizontal
result.spacing = Values.veryLargeSpacing result.spacing = Values.veryLargeSpacing
return result return result
@ -347,7 +347,8 @@ final class CallVC : UIViewController, VideoPreviewDelegate {
if (call.isVideoEnabled) { if (call.isVideoEnabled) {
localVideoView.isHidden = true localVideoView.isHidden = true
cameraManager.stop() cameraManager.stop()
videoButton.alpha = 0.5 videoButton.tintColor = .white
videoButton.backgroundColor = UIColor(hex: 0x1F1F1F)
switchCameraButton.isEnabled = false switchCameraButton.isEnabled = false
call.isVideoEnabled = false call.isVideoEnabled = false
} else { } else {
@ -361,7 +362,8 @@ final class CallVC : UIViewController, VideoPreviewDelegate {
localVideoView.isHidden = false localVideoView.isHidden = false
cameraManager.prepare() cameraManager.prepare()
cameraManager.start() cameraManager.start()
videoButton.alpha = 1.0 videoButton.tintColor = UIColor(hex: 0x1F1F1F)
videoButton.backgroundColor = .white
switchCameraButton.isEnabled = true switchCameraButton.isEnabled = true
call.isVideoEnabled = true call.isVideoEnabled = true
} }

@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "AudioOff.pdf", "filename" : "audio_off_fill.pdf",
"idiom" : "universal" "idiom" : "universal"
} }
], ],

@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "SwtichCamera.pdf", "filename" : "switch_camera_fill.pdf",
"idiom" : "universal" "idiom" : "universal"
} }
], ],

@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "video_call.pdf", "filename" : "video_call_fill.pdf",
"idiom" : "universal" "idiom" : "universal"
} }
], ],

Loading…
Cancel
Save