mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:18:06 +00:00
Add file position on logs. Add Avatar provider to nitifications. Fix using `source` on EffectImage that shouldn't be used as an image source because this property is for Loader (ImageProviders cannot be used in this case).
39 lines
973 B
QML
39 lines
973 B
QML
import QtQuick 2.15
|
|
import QtQuick.Effects
|
|
import QtQuick.Layouts
|
|
import Linphone
|
|
|
|
MouseArea {
|
|
id: mainItem
|
|
property string iconSource
|
|
property string text
|
|
property color color: DefaultStyle.main2_600
|
|
property int iconSize: 17 * DefaultStyle.dp
|
|
property int textSize: 14 * DefaultStyle.dp
|
|
property int textWeight: 400 * DefaultStyle.dp
|
|
hoverEnabled: true
|
|
cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor
|
|
width: content.implicitWidth
|
|
RowLayout {
|
|
id: content
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
EffectImage {
|
|
Layout.preferredWidth: mainItem.iconSize
|
|
Layout.preferredHeight: mainItem.iconSize
|
|
width: mainItem.iconSize
|
|
height: mainItem.iconSize
|
|
imageSource: mainItem.iconSource
|
|
colorizationColor: mainItem.color
|
|
}
|
|
Text {
|
|
width: implicitWidth
|
|
Layout.fillWidth: true
|
|
text: mainItem.text
|
|
color: mainItem.color
|
|
font {
|
|
pixelSize: mainItem.textSize
|
|
weight: mainItem.textWeight
|
|
}
|
|
}
|
|
}
|
|
}
|