Fix (for good) background color for Me participant + repositionned the Me sticker bottom right in AS Landscape iso top right

This commit is contained in:
Christophe Deschamps 2022-09-19 16:04:12 +02:00
parent 24b00bdd07
commit 726a4afdd1
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ import UIKit
static let voipBackgroundColor = LightDarkColor(voip_gray_blue_color,voip_dark_color)
static let voipBackgroundBWColor = LightDarkColor(UIColor.white,voip_dark_color)
static let voipParticipantBackgroundColor = LightDarkColor(voip_gray_background,voip_dark_color2)
static let voipParticipantMeBackgroundColor = LightDarkColor(voip_gray_background,voip_dark_color3)
static let voipParticipantMeBackgroundColor = LightDarkColor(voip_dark_color3,voip_dark_color3)
static let voipExtraButtonsBackgroundColor = LightDarkColor(voip_gray,voip_dark_color3)
static let voipToolbarBackgroundColor = LightDarkColor(toolbar_color,voip_dark_color4)
static let voipDrawableColor = LightDarkColor(voip_dark_gray,.white)

View file

@ -376,8 +376,8 @@ class VoipConferenceActiveSpeakerView: UIView, UICollectionViewDataSource, UICol
if (UIDevice.current.orientation == .landscapeLeft) { // work around some constraints issues with Notch on the left.
bounceGrids()
}
meGrid.width(grid_height).height(grid_height).toRightOf(activeSpeakerView,withLeftMargin: ActiveCallOrConferenceView.content_inset).alignParentTop().alignParentRight().done()
grid.width(grid_height).toRightOf(activeSpeakerView,withLeftMargin: ActiveCallOrConferenceView.content_inset).alignUnder(view: meGrid, withMargin: ActiveCallOrConferenceView.content_inset).alignParentBottom().alignParentRight().done()
meGrid.width(grid_height).height(grid_height).toRightOf(activeSpeakerView,withLeftMargin: ActiveCallOrConferenceView.content_inset).alignParentBottom().alignParentRight().done()
grid.width(grid_height).toRightOf(activeSpeakerView,withLeftMargin: ActiveCallOrConferenceView.content_inset).alignParentTop().alignAbove(view: meGrid, withMargin: ActiveCallOrConferenceView.content_inset).alignParentRight().done()
layout.scrollDirection = .vertical
activeSpeakerAvatar.square(Avatar.diameter_for_call_views_land).center().done()
}