linphone-desktop/Linphone/view/Control/Display/Chat/Event.qml
2025-12-17 14:39:40 +01:00

48 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Layouts
import Linphone
import UtilsCpp
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
RowLayout {
id: mainItem
height: Utils.getSizeWithScreenRatio(40)
visible: eventLogGui.core.handled
property EventLogGui eventLogGui
Rectangle {
height: 1
Layout.fillWidth: true
color: DefaultStyle.main2_200
}
ColumnLayout {
Layout.rightMargin: Utils.getSizeWithScreenRatio(20)
Layout.leftMargin: Utils.getSizeWithScreenRatio(20)
Layout.alignment: Qt.AlignVCenter
Text {
id: message
text: mainItem.eventLogGui.core.eventDetails
font: Typography.p3
color: mainItem.eventLogGui.core.important ? DefaultStyle.danger_500_main : DefaultStyle.main2_500_main
horizontalAlignment: Text.AlignHCenter
Layout.alignment: Qt.AlignHCenter
}
Text {
id: date
text: UtilsCpp.toDateTimeString(mainItem.eventLogGui.core.timestamp)
font: Typography.p3
color: DefaultStyle.main2_500_main
horizontalAlignment: Text.AlignHCenter
Layout.alignment: Qt.AlignHCenter
}
}
Rectangle {
height: 1
Layout.fillWidth: true
color: DefaultStyle.main2_200
}
}