Add indicator when room list is empty.

This commit is contained in:
Black Hat
2019-06-23 15:55:23 +08:00
parent d1ea667e98
commit 88371ec7d2

View File

@@ -354,6 +354,28 @@ Item {
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
}
ColumnLayout {
anchors.centerIn: parent
visible: sortedRoomListModel.count == 0
MaterialIcon {
Layout.alignment: Qt.AlignHCenter
icon: "\ue2bf"
font.pixelSize: 48
color: MPalette.lighter
}
Label {
Layout.alignment: Qt.AlignHCenter
text: "You're all caught up!"
color: MPalette.foreground
}
}
}
}