From 237940d7982b32c53524a0a88ea41e404e7f92c0 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 29 Jun 2022 13:52:36 +0200 Subject: [PATCH] Change avatar size to 2/3 of container. --- linphone-app/ui/modules/Linphone/Camera/CameraView.qml | 2 +- linphone-app/ui/scripts/Utils/utils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linphone-app/ui/modules/Linphone/Camera/CameraView.qml b/linphone-app/ui/modules/Linphone/Camera/CameraView.qml index 6fc633376..b65f68e48 100644 --- a/linphone-app/ui/modules/Linphone/Camera/CameraView.qml +++ b/linphone-app/ui/modules/Linphone/Camera/CameraView.qml @@ -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 } diff --git a/linphone-app/ui/scripts/Utils/utils.js b/linphone-app/ui/scripts/Utils/utils.js index 098a4b961..a2928f096 100644 --- a/linphone-app/ui/scripts/Utils/utils.js +++ b/linphone-app/ui/scripts/Utils/utils.js @@ -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