Pause label remove from active speaker stickers, et add spacing on grid ones

This commit is contained in:
Christophe Deschamps 2022-06-10 12:21:53 +02:00
parent e8274983cd
commit 64d33a67fb
3 changed files with 6 additions and 4 deletions

View file

@ -39,7 +39,7 @@ class ConferenceWaitingRoomViewModel: ControlsViewModel {
}
func reset() {
joinLayout.value = .Grid
joinLayout.value = .ActiveSpeaker // TODO add setting
joinInProgress.value = false
isMicrophoneMuted.value = !micAuthorized()
isMuteMicrophoneEnabled.value = true

View file

@ -124,8 +124,9 @@ class VoipActiveSpeakerParticipantCell: UICollectionViewCell {
contentView.addSubview(displayName)
displayName.matchParentSideBorders(insetedByDx:ActiveCallView.bottom_displayname_margin_left).alignParentBottom(withMargin:ActiveCallView.bottom_displayname_margin_bottom).done()
contentView.addSubview(pauseLabel)
pauseLabel.toRightOf(displayName).alignParentBottom(withMargin:ActiveCallView.bottom_displayname_margin_bottom).done()
// Paused label commented out (Android 10.06.2022)
// contentView.addSubview(pauseLabel)
//pauseLabel.toRightOf(displayName).alignParentBottom(withMargin:ActiveCallView.bottom_displayname_margin_bottom).done()
contentView.matchParentDimmensions().done()
makeHeightMatchWidth().done()

View file

@ -30,6 +30,7 @@ class VoipGridParticipantCell: UICollectionViewCell {
static let avatar_size = 80.0
let switch_camera_button_margins = 8.0
let switch_camera_button_size = 30
let pause_label_left_margin = 5
let videoView = UIView()
@ -129,7 +130,7 @@ class VoipGridParticipantCell: UICollectionViewCell {
displayName.alignParentLeft(withMargin:ActiveCallView.bottom_displayname_margin_left).alignParentBottom(withMargin:ActiveCallView.bottom_displayname_margin_bottom).done()
contentView.addSubview(pauseLabel)
pauseLabel.toRightOf(displayName).alignParentBottom(withMargin:ActiveCallView.bottom_displayname_margin_bottom).done()
pauseLabel.toRightOf(displayName,withLeftMargin: pause_label_left_margin).alignParentBottom(withMargin:ActiveCallView.bottom_displayname_margin_bottom).done()
contentView.matchParentDimmensions().done()
}