mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
[StatusChatList]: added marks indicating unread msg and mentions
Closes #8265
This commit is contained in:
parent
cbdc3e61b5
commit
e35086f448
@ -187,19 +187,22 @@ Rectangle {
|
||||
visible: mutedIconSensor.containsMouse
|
||||
}
|
||||
}
|
||||
|
||||
StatusBadge {
|
||||
id: statusBadge
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
Item {
|
||||
width: 32
|
||||
height: parent.height
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 8
|
||||
|
||||
color: root.muted ? Theme.palette.primaryColor2 : Theme.palette.primaryColor1
|
||||
border.width: 4
|
||||
border.color: color
|
||||
value: root.notificationsCount
|
||||
visible: root.notificationsCount > 0
|
||||
StatusBadge {
|
||||
id: statusBadge
|
||||
readonly property bool onlyUnread: (root.notificationsCount === 0 && root.hasUnreadMessages)
|
||||
anchors.centerIn: parent
|
||||
color: onlyUnread ? Theme.palette.baseColor1 :
|
||||
root.muted ? Theme.palette.primaryColor2 : Theme.palette.primaryColor1
|
||||
border.width: onlyUnread ? -2 : 4
|
||||
border.color: color
|
||||
value: root.notificationsCount
|
||||
visible: (root.notificationsCount > 0 || onlyUnread)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user