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.
This commit is contained in:
@@ -154,7 +154,7 @@ QQC2.Control {
|
|||||||
visible: true
|
visible: true
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||||
Kirigami.Theme.inherit: false
|
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
|
radius: height / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,6 +162,13 @@ QQC2.Control {
|
|||||||
id: directChatNotificationCountTextMetrics
|
id: directChatNotificationCountTextMetrics
|
||||||
text: directChatNotificationCountLabel.text
|
text: directChatNotificationCountLabel.text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Kirigami.Icon {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
source: "list-add-symbolic"
|
||||||
|
visible: root.connection.directChatInvites && root.connection.directChatNotifications === 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user