Prettify and search enable the error page

The prettification is based somewhat on the way the Updates page
looks while fetching (it was previously just a header and just
sort of... boring looking)

The functional difference in this patch is that the search field
is enabled, should this page be shown as the first thing when
Discover opens (and as such is the root item in the pagerow). This
might for example happen if you attempt to pass an application on
the commandline which does not exist.

Differential Revision: https://phabricator.kde.org/D18318
parent 30cff9ff
......@@ -145,11 +145,34 @@ Kirigami.ApplicationWindow
Kirigami.Page {
id: page
property string error: ""
readonly property bool isHome: true
function searchFor(text) {
if (text.length === 0)
return;
Navigation.openCategory(null, "")
}
Kirigami.Icon {
id: infoIcon;
anchors {
bottom: parent.verticalCenter
margins: Kirigami.Units.largeSpacing
horizontalCenter: parent.horizontalCenter
}
visible: page.page.error !== ""
source: "emblem-warning"
height: Kirigami.Units.iconSizes.huge
width: height;
}
Kirigami.Heading {
text: page.error
anchors.fill: parent
anchors {
top: parent.verticalCenter
margins: Kirigami.Units.largeSpacing
horizontalCenter: parent.horizontalCenter
}
width: parent.width;
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
visible: page.error !== ""
text: page.error
}
}
}
......
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