From d1b929788e192308883aec0c7d9c923da77b1c22 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Mon, 13 Aug 2018 13:07:35 +0800 Subject: [PATCH] Add "New Message" separator. --- qml/form/RoomForm.qml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/qml/form/RoomForm.qml b/qml/form/RoomForm.qml index a8ce137..8c10933 100644 --- a/qml/form/RoomForm.qml +++ b/qml/form/RoomForm.qml @@ -195,10 +195,8 @@ Item { spacing: 8 RowLayout { - readonly property bool sectionVisible: section !== aboveSection - width: parent.width * 0.8 - visible: sectionVisible + visible: section !== aboveSection anchors.horizontalCenter: parent.horizontalCenter spacing: 8 @@ -221,6 +219,31 @@ Item { } } + RowLayout { + width: parent.width * 0.8 + visible: readMarker === true && index !== 0 + anchors.horizontalCenter: parent.horizontalCenter + spacing: 8 + + Rectangle { + Layout.fillWidth: true + height:2 + color: Material.accent + } + + Label { + text: "And Now" + color: Material.accent + verticalAlignment: Text.AlignVCenter + } + + Rectangle { + Layout.fillWidth: true + height:2 + color: Material.accent + } + } + MessageDelegate {} }