linphone-desktop/linphone-app/ui/modules/Common/Image/RoundedImage.qml
Julien Wadel 427fd742de Replace hardcoded shader effects by simple QML object on avatar. This fix OpenGLShader error on compability lost.
Clean address before searching contact while in call. This fix unfound contact (shown on loosing avatar in call list for example)
Fix CI to select Qt from MaintenanceTool and not homebrew or other libs.
macdeployqt from Homebrew is bugged on deploying webengine application : rpath stay in absolute and cannot be used for deployment
Fix Webview on Qt 5.15
2021-11-26 21:52:52 +01:00

41 lines
875 B
QML

import QtQuick 2.7
import QtGraphicalEffects 1.0
import Linphone 1.0
// =============================================================================
Item {
id: item
property alias source: image.source
property color backgroundColor: '#00000000'
property color foregroundColor: '#00000000'
readonly property alias status: image.status
Rectangle {
id: backgroundArea
anchors.fill: parent
color: item.backgroundColor
radius: width/2
}
Image {
id: image
mipmap: SettingsModel.mipmapEnabled
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize.width: parent.width
sourceSize.height: parent.height
layer.enabled: true
layer.effect: OpacityMask {
maskSource: backgroundArea
}
}
Rectangle {
id: foregroundArea
anchors.fill: parent
visible: color != 'transparent'
color: item.foregroundColor
radius: width/2
}
}