From 2b374a8bec4abecb1b5deffbb8da979be79aef2a Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 1 Sep 2024 12:05:19 -0400 Subject: [PATCH] Add an icon when you only have invites but no direct messages There's an edge case with the friends icon, where it will display a blank circle if you only have pending invites but no actual direct messages. Now an icon is added to make it clear there is pending invites and it's not a visual bug. --- src/qml/SpaceDrawer.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/qml/SpaceDrawer.qml b/src/qml/SpaceDrawer.qml index c656334ce..6a2ea7cf8 100644 --- a/src/qml/SpaceDrawer.qml +++ b/src/qml/SpaceDrawer.qml @@ -154,7 +154,7 @@ QQC2.Control { visible: true Kirigami.Theme.colorSet: Kirigami.Theme.Button Kirigami.Theme.inherit: false - color: root.connection.directChatsHaveHighlightNotifications ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor + color: root.connection.directChatsHaveHighlightNotifications || root.connection.directChatInvites ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor radius: height / 2 } @@ -162,6 +162,13 @@ QQC2.Control { id: directChatNotificationCountTextMetrics text: directChatNotificationCountLabel.text } + + Kirigami.Icon { + anchors.fill: parent + + source: "list-add-symbolic" + visible: root.connection.directChatInvites && root.connection.directChatNotifications === 0 + } } }