From 8f345174abb0a7afe7505f7b642a761b5b9d8e5b Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 7 Feb 2021 02:29:50 +0200 Subject: [PATCH] Use different badge colors for muted chats --- qml/components/PhotoTextsListItem.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qml/components/PhotoTextsListItem.qml b/qml/components/PhotoTextsListItem.qml index 78c7f39..f2270bb 100644 --- a/qml/components/PhotoTextsListItem.qml +++ b/qml/components/PhotoTextsListItem.qml @@ -84,7 +84,7 @@ ListItem { Rectangle { id: chatUnreadMessagesCountBackground - color: Theme.highlightBackgroundColor + color: isMuted ? ((Theme.colorScheme === Theme.DarkOnLight) ? "lightgray" : "dimgray") : Theme.highlightBackgroundColor width: Theme.fontSizeLarge height: Theme.fontSizeLarge anchors.right: parent.right @@ -100,6 +100,7 @@ ListItem { color: Theme.primaryColor anchors.centerIn: chatUnreadMessagesCountBackground visible: chatListViewItem.unreadCount > 0 + opacity: isMuted ? Theme.opacityHigh : 1.0 text: chatListViewItem.unreadCount > 99 ? "99+" : chatListViewItem.unreadCount } }