Merge pull request #370 from monich/muted

Use different badge colors for muted chats
This commit is contained in:
Sebastian Wolf 2021-02-07 18:21:50 +01:00 committed by GitHub
commit 98eaf699bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}