From e3b1f014df55f08f557667919d271f079f5f492f Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 28 Aug 2021 12:03:50 +0000 Subject: Add padlock and bot icons to messages, improve layout --- qml/Message.qml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'qml') diff --git a/qml/Message.qml b/qml/Message.qml index c7daf07..15d4b09 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -200,7 +200,9 @@ RowLayout { text = messageObject.message.text } } - Row { + RowLayout { + Layout.alignment: Qt.AlignRight + HtmlViewSheet { id: htmlSheet subject: "" @@ -216,8 +218,23 @@ RowLayout { htmlSheet.open() } } + + Kirigami.Icon { + source: "computer" + visible: messageObject.message.isBot + Layout.preferredHeight: Kirigami.Units.gridUnit + Layout.preferredWidth: Kirigami.Units.gridUnit + } + + Kirigami.Icon { + source: messageObject.message.showPadlock ? "lock" : "unlock" + Layout.preferredHeight: Kirigami.Units.gridUnit + Layout.preferredWidth: Kirigami.Units.gridUnit + } + Label { - Layout.fillWidth: true + font.pixelSize: 14 + color: Kirigami.Theme.disabledTextColor text: Qt.formatDateTime(messageObject.message.timestamp, "dd. MMM yyyy, hh:mm") + (messageObject.message.state == 26 ? "✓" : messageObject.message.state == 28 ? "✓✓" -- cgit v1.2.3-70-g09d2