mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 04:21:44 +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
|
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)
|
||||||
border.color: color
|
anchors.centerIn: parent
|
||||||
value: root.notificationsCount
|
color: onlyUnread ? Theme.palette.baseColor1 :
|
||||||
visible: root.notificationsCount > 0
|
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