Commit 8f65e98a authored by Nate Graham's avatar Nate Graham 🔩

Make messages that include BusyIndicators consistent with one another

parent f34b23d5
...@@ -167,6 +167,8 @@ DiscoverPage { ...@@ -167,6 +167,8 @@ DiscoverPage {
BusyIndicator { BusyIndicator {
running: parent.visible running: parent.visible
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: Kirigami.Units.gridUnit * 4
Layout.preferredHeight: Kirigami.Units.gridUnit * 4
} }
Behavior on opacity { Behavior on opacity {
PropertyAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad } PropertyAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad }
......
...@@ -42,12 +42,23 @@ DiscoverPage ...@@ -42,12 +42,23 @@ DiscoverPage
Navigation.openCategory(null, "") Navigation.openCategory(null, "")
} }
BusyIndicator { ColumnLayout {
id: indicator
anchors.centerIn: parent anchors.centerIn: parent
width: Kirigami.Units.gridUnit * 8 opacity: 0.5
height: width
visible: apps.count === 0 && apps.model.isFetching visible: apps.count === 0 && apps.model.isFetching
Kirigami.Heading {
level: 2
Layout.alignment: Qt.AlignCenter
text: i18n("Loading...")
}
BusyIndicator {
id: indicator
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: Kirigami.Units.gridUnit * 4
Layout.preferredHeight: Kirigami.Units.gridUnit * 4
}
} }
Kirigami.PlaceholderMessage { Kirigami.PlaceholderMessage {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment