[StatusChatList]: added marks indicating unread msg and mentions

Closes #8265
This commit is contained in:
Alexandra Betouni 2023-04-06 20:22:23 +03:00
parent cbdc3e61b5
commit e35086f448

View File

@ -187,19 +187,22 @@ Rectangle {
visible: mutedIconSensor.containsMouse visible: mutedIconSensor.containsMouse
} }
} }
Item {
StatusBadge { width: 32
id: statusBadge height: parent.height
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 8 anchors.rightMargin: 8
StatusBadge {
color: root.muted ? Theme.palette.primaryColor2 : Theme.palette.primaryColor1 id: statusBadge
border.width: 4 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 border.color: color
value: root.notificationsCount value: root.notificationsCount
visible: root.notificationsCount > 0 visible: (root.notificationsCount > 0 || onlyUnread)
}
} }
} }
} }