linphone-desktop/Linphone/view/Item/IconLabelButton.qml
Julien Wadel f7749a30e3 Add application info at the start.
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).
2024-03-12 15:47:40 +01:00

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
}
}
}
}