linphone-desktop/Linphone/view/Control/Display/Chat/EphemeralEvent.qml
2025-10-23 12:39:16 +02:00

35 lines
998 B
QML

import QtQuick
import QtQuick.Layouts
import Linphone
import UtilsCpp
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
Rectangle {
anchors.centerIn: parent
property EventLogGui eventLogGui
property var eventLogCore: eventLogGui.core
visible: eventLogCore.handled
height: row.height + Utils.getSizeWithScreenRatio(15)
width: row.width + Utils.getSizeWithScreenRatio(15)
radius: Utils.getSizeWithScreenRatio(10)
border.width: Utils.getSizeWithScreenRatio(2)
border.color: DefaultStyle.main2_200
color: "transparent"
RowLayout {
id: row
anchors.centerIn: parent
EffectImage {
Layout.preferredWidth: visible ? Utils.getSizeWithScreenRatio(20) : 0
Layout.preferredHeight: Utils.getSizeWithScreenRatio(20)
colorizationColor: DefaultStyle.main2_400
imageSource: AppIcons.clockCountDown
Layout.alignment: Qt.AlignHCenter
}
Text {
id: message
text: eventLogCore.eventDetails
font: Typography.p3
color: DefaultStyle.main2_400
}
}
}