From 88371ec7d29b4fb289b73a286a716a1a322e36e5 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sun, 23 Jun 2019 15:55:23 +0800 Subject: [PATCH] Add indicator when room list is empty. --- imports/Spectral/Panel/RoomListPanel.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/imports/Spectral/Panel/RoomListPanel.qml b/imports/Spectral/Panel/RoomListPanel.qml index d93ad64cf..e6edb856d 100644 --- a/imports/Spectral/Panel/RoomListPanel.qml +++ b/imports/Spectral/Panel/RoomListPanel.qml @@ -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 + } + } } }