mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
Change avatar size to 2/3 of container.
This commit is contained in:
parent
0fc7d4e73d
commit
237940d798
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue