linux.x86.linphone/Linphone/view/Item/EffectImage.qml
Julien Wadel a1d72e6382 Feature : display accounts.
- Implement shaders to make round images and use qsb --qt6.
- Add picture to Friend.
- Display username if displayname is not found.
- Compute initials from C++ with emojis.
- Add Accounts list in a popup from main window.
- Add a hack on account to update avatar on all AcountModel.
- Add Avatar item for initials/picture.
- Add Contact description item.
- Make sizes proportionals to match designs.
- Add image colorization.
2023-12-01 15:20:48 +01:00

44 lines
979 B
QML

import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2 as Control
import QtQuick.Effects
import Linphone
Item {
id: mainItem
property alias image: image
property alias effect: effect
property alias effect2: effect2
property var colorizationColor
readonly property bool useColor: colorizationColor != undefined
width: image.width
height: image.height
Image {
id: image
width: parent.width
height: parent.height
//sourceSize.width: parent.width
fillMode: Image.PreserveAspectFit
anchors.centerIn: parent
visible: !effect2.enabled
}
MultiEffect {
id: effect
anchors.fill: image
source: image
maskSource: image
visible: !effect2.enabled
brightness: effect2.enabled ? 1.0 : 0.0
}
MultiEffect {
id: effect2
enabled: mainItem.useColor
anchors.fill: effect
source: effect
maskSource: effect
colorizationColor: effect2.enabled ? mainItem.colorizationColor : 'black'
colorization: effect2.enabled ? 1.0 : 0.0
}
}