Commit eb5ccec9 authored by Nate Graham's avatar Nate Graham 🔩

Port "sorry, nothing found" message to Kirigami.PlaceholderMessage

Test Plan: {F8313851, size=full}

Reviewers: apol, #discover_software_store, #vdg, filipf

Reviewed By: #vdg, filipf

Subscribers: filipf, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29689
parent 95baf15b
......@@ -24,7 +24,7 @@ import QtQuick.Window 2.2
import "navigation.js" as Navigation
import org.kde.discover.app 1.0
import org.kde.discover 2.0
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
DiscoverPage {
id: page
......@@ -145,11 +145,15 @@ DiscoverPage {
showRating: page.showRating
}
Label {
Kirigami.PlaceholderMessage {
anchors.centerIn: parent
opacity: apps.count == 0 && !appsModel.isBusy ? 0.3 : 0
Behavior on opacity { PropertyAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad } }
text: i18n("Sorry, nothing found...")
width: parent.width - (Kirigami.Units.largeSpacing * 4)
opacity: apps.count == 0 && !appsModel.isBusy ? 1 : 0
Behavior on opacity { NumberAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad } }
icon.name: "edit-none"
text: i18n("Sorry, nothing found")
}
footer: BusyIndicator {
......
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