Added limited local read/unread tracking

This commit is contained in:
Emi Simpson
2020-04-09 18:03:12 -04:00
committed by miruka
parent b2cfc27ce2
commit 6ee20a2717
7 changed files with 44 additions and 18 deletions

View File

@@ -44,23 +44,23 @@ HTileDelegate {
color: theme.mainPane.listView.room.name
}
// HLabel {
// text: model.mentions
// font.pixelSize: theme.fontSize.small
// verticalAlignment: Qt.AlignVCenter
// leftPadding: theme.spacing / 4
// rightPadding: leftPadding
HLabel {
text: model.unreads
font.pixelSize: theme.fontSize.small
verticalAlignment: Qt.AlignVCenter
leftPadding: theme.spacing / 4
rightPadding: leftPadding
// scale: model.mentions === 0 ? 0 : 1
// visible: scale > 0
scale: model.unreads === 0 ? 0 : 1
visible: scale > 0
// background: Rectangle {
// color: theme.colors.alertBackground
// radius: theme.radius / 4
// }
background: Rectangle {
color: model.mentions === 0 ? theme.colors.unreadBackground : theme.colors.alertBackground
radius: theme.radius / 4
}
// Behavior on scale { HNumberAnimation {} }
// },
Behavior on scale { HNumberAnimation {} }
}
HIcon {
svgName: "invite-received"