From ae6eae5204f6546a672075b04df6ecdd95a47b07 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 24 Nov 2020 23:36:39 +0100 Subject: [PATCH] Add bold for unread channel --- imports/NeoChat/Page/RoomListPage.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index 6bb591279..06b1bc752 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -153,6 +153,7 @@ Kirigami.ScrollablePage { Layout.fillHeight: true text: name ?? "" elide: Text.ElideRight + font.bold: unreadCount >= 0 || highlightCount > 0 || notificationCount > 0 wrapMode: Text.NoWrap } @@ -173,7 +174,7 @@ Kirigami.ScrollablePage { padding: Kirigami.Units.smallSpacing background: Rectangle { Kirigami.Theme.colorSet: Kirigami.Theme.Button - color: Kirigami.Theme.backgroundColor + color: highlightCount > 0 ? Kirigami.Theme.negativeColor : Kirigami.Theme.backgroundColor radius: height / 2 implicitWidth: implicitHeight }