Add account total unread/mentions indicator

This commit is contained in:
miruka
2020-05-01 04:46:08 -04:00
parent 9ebd8644c8
commit 9f7d30f248
6 changed files with 26 additions and 7 deletions

View File

@@ -79,6 +79,16 @@ HColumnLayout {
radius: theme.accountsBar.accountList.account.avatarRadius
}
MessageIndicator {
anchors.right: parent.right
anchors.bottom: parent.bottom
indicatorTheme:
theme.accountView.roomList.room.unreadIndicator
unreads: model.total_unread
mentions: model.total_mentions
}
}
onLeftClicked: roomList.goToAccount(model.id)

View File

@@ -30,6 +30,5 @@ HLabel {
property int mentions: 0
Behavior on scale { HNumberAnimation {} }
}