linphone-desktop/linphone-app/ui/modules/Linphone/Sticker/AvatarSticker.qml
Julien Wadel 4d139b2991 Fix bad glowing on speaking participants.
Go to the end of conference list going into it or when changing filter.
Update SDK.
2022-07-07 15:17:49 +02:00

59 lines
1.6 KiB
QML

import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.12
import App.Styles 1.0
import Common 1.0
import Common.Styles 1.0
import Linphone 1.0
import Linphone.Styles 1.0
import 'qrc:/ui/scripts/Utils/utils.js' as Utils
// =============================================================================
DecorationSticker {
id:mainItem
property ParticipantDeviceModel currentDevice
property CallModel callModel
property bool isPaused
property bool isPreview
property bool showCloseButton: false
property bool showActiveSpeakerOverlay: true
property real avatarRatio : 2/3
property color color : AvatarStickerStyle.outBackgroundColor
property alias image: avatar.image
property alias username: avatar.username
property alias avatarBackgroundColor: avatar.backgroundColor
property alias showCustomButton: mainItem._showCustomButton
property alias customButtonToggled: mainItem._customButtonToggled
property alias customButtonColorSet: mainItem._customButtonColorSet
_currentDevice: currentDevice
_callModel: callModel
_isPaused: isPaused
_isPreview: isPreview
_showCloseButton: showCloseButton
_showActiveSpeakerOverlay: showActiveSpeakerOverlay
clip:false
radius: AvatarStickerStyle.radius
_content: Rectangle{
anchors.fill: parent
color: mainItem.color
radius: mainItem.radius
IncallAvatar {
id: avatar
anchors.centerIn: parent
participantDeviceModel: mainItem.currentDevice
call: participantDeviceModel ? undefined : mainItem.callModel
height: Utils.computeAvatarSize(mainItem, mainItem.width, avatarRatio)
width: height
backgroundColor: AvatarStickerStyle.inBackgroundColor
}
}
}