Add unread message count

This commit is contained in:
Carl Schwan
2020-11-18 10:26:48 +01:00
parent 74bcfca275
commit d96a548c4f

View File

@@ -161,6 +161,17 @@ Kirigami.ScrollablePage {
wrapMode: Text.NoWrap
}
}
QQC2.Label {
text: notificationCount
visible: notificationCount > 0
padding: Kirigami.Units.smallSpacing
background: Rectangle {
Kirigami.Theme.colorSet: Kirigami.Theme.Button
color: Kirigami.Theme.backgroundColor
radius: height / 2
implicitWidth: implicitHeight
}
}
}
MouseArea {