Change avatar size to 2/3 of container.

This commit is contained in:
Julien Wadel 2022-06-29 13:52:36 +02:00
parent 0fc7d4e73d
commit 237940d798
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ Item{
IncallAvatar {
participantDeviceModel: mainItem.currentDevice
height: Utils.computeAvatarSize(mainItem, CallStyle.container.avatar.maxSize)
height: Utils.computeAvatarSize(backgroundArea, CallStyle.container.avatar.maxSize)
width: height
backgroundColor: CameraViewStyle.inAvatarBackgroundColor
}

View file

@ -743,8 +743,8 @@ function write (fileName, text) {
}
function computeAvatarSize (container, maxSize) {
var height = container.height
var width = container.width
var height = 2*container.height/3
var width = 2*container.width/3
var size = height < maxSize && height > 0 ? height : maxSize
return size < width ? size : width