From d96a548c4fbc7143cf0665c947c0ab445a3689a6 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 18 Nov 2020 10:26:48 +0100 Subject: [PATCH] Add unread message count --- imports/NeoChat/Page/RoomListPage.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index adeb8243e..a55eacd32 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -161,6 +161,17 @@ Kirigami.ScrollablePage { wrapMode: Text.NoWrap } } + QQC2.Label { + text: notificationCount + visible: notificationCount > 0 + padding: Kirigami.Units.smallSpacing + background: Rectangle { + Kirigami.Theme.colorSet: Kirigami.Theme.Button + color: Kirigami.Theme.backgroundColor + radius: height / 2 + implicitWidth: implicitHeight + } + } } MouseArea {