summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-09-24 14:32:06 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-09-24 14:32:06 (GMT)
commit3088fdc4d78a11626bd26e934ce085130dcab109 (patch)
tree25eb82f9125112cb3785875156d65c11b0e7c623
parent80db05fbad807b99f965fb34a88d807f282e5a51 (diff)
Add a gradient when there's no breadcrumbs bar
Like in the vdg mockups
-rw-r--r--discover/qml/Main.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/discover/qml/Main.qml b/discover/qml/Main.qml
index af4b8f4..b8ce0e3 100644
--- a/discover/qml/Main.qml
+++ b/discover/qml/Main.qml
@@ -130,11 +130,27 @@ Rectangle
onListCategoryInternal: Navigation.openCategoryByName(name)
}
+ Rectangle {
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "darkGray" }
+ GradientStop { position: 1.0; color: "transparent" }
+ }
+ height: parent.height/5
+ anchors {
+ topMargin: toolbar.height
+ top: parent.top
+ left: parent.left
+ right: parent.right
+ }
+ visible: !fu.visible
+ }
+
ColumnLayout {
spacing: 0
anchors.fill: parent
MuonToolbar {
+ Layout.fillWidth: true
id: toolbar
}