From ae35846035734aaa7172e74e074db28a1ebd8065 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 1 Dec 2020 16:35:51 +0100 Subject: [PATCH] Show read marker Fix #2 --- .../NeoChat/Component/Timeline/TimelineContainer.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Component/Timeline/TimelineContainer.qml b/imports/NeoChat/Component/Timeline/TimelineContainer.qml index 978776464..86ece1206 100644 --- a/imports/NeoChat/Component/Timeline/TimelineContainer.qml +++ b/imports/NeoChat/Component/Timeline/TimelineContainer.qml @@ -12,7 +12,7 @@ import org.kde.kirigami 2.4 as Kirigami Item { default property alias innerObject : column.children - height: column.implicitHeight + height: column.implicitHeight + (readMarker ? 2 * Kirigami.Units.smallSpacing : 0) ColumnLayout { id: column @@ -25,4 +25,14 @@ Item { visible: showSection } } + + Rectangle { + width: parent.width * 0.9 + x: parent.width * 0.05 + height: Kirigami.Units.smallSpacing + anchors.top: column.bottom + anchors.topMargin: Kirigami.Units.smallSpacing + visible: readMarker + color: Kirigami.Theme.positiveTextColor + } }