From 2f4116796afb642f03f62a0edff56c9bcd659756 Mon Sep 17 00:00:00 2001 From: Jan Bidler Date: Thu, 25 Aug 2022 19:19:47 +0200 Subject: [PATCH] Rework notification colors --- imports/NeoChat/Page/RoomListPage.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index 777a4ed76..252f53c6e 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -338,15 +338,15 @@ Kirigami.ScrollablePage { trailing: RowLayout { QQC2.Label { - text: notificationCount - visible: notificationCount > 0 + text: notificationCount > 0 ? notificationCount : "" + visible: unreadCount > 0 padding: Kirigami.Units.smallSpacing - color: highlightCount > 0 ? "white" : Kirigami.Theme.textColor + color: Kirigami.Theme.textColor Layout.minimumWidth: height horizontalAlignment: Text.AlignHCenter background: Rectangle { Kirigami.Theme.colorSet: Kirigami.Theme.Button - color: highlightCount > 0 ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor + color: highlightCount > 0 ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.disabledTextColor radius: height / 2 } }