From feebc7678a23610ec63c7477a156d72e54880f9f Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 27 Nov 2020 12:34:20 +0100 Subject: [PATCH] Fix wrong color for room pill when mentioned Fix: #81 --- imports/NeoChat/Page/RoomListPage.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index 06b1bc752..0d0e4ab1f 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -172,11 +172,13 @@ Kirigami.ScrollablePage { text: notificationCount visible: notificationCount > 0 padding: Kirigami.Units.smallSpacing + color: highlightCount > 0 ? "white" : Kirigami.Theme.textColor + Layout.minimumWidth: height + horizontalAlignment: Text.AlignHCenter background: Rectangle { Kirigami.Theme.colorSet: Kirigami.Theme.Button - color: highlightCount > 0 ? Kirigami.Theme.negativeColor : Kirigami.Theme.backgroundColor + color: highlightCount > 0 ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.backgroundColor radius: height / 2 - implicitWidth: implicitHeight } } }