@@ -16,6 +16,8 @@
17import QtQuick 2.2
17import QtQuick 2.2
18import Ubuntu.Components 1.1
18import Ubuntu.Components 1.1
20+import "../Components"
@@ -47,29 +49,10 @@ Item {
47 visible: opacity != 0
49 visible: opacity != 0
50− Image {
52+ Background {
51− id: topGradient
53+ id: background
52− anchors.top: parent.top
54+ anchors.fill: parent
53− fillMode: Image.Stretch
55+ style: scopeStyle ? scopeStyle.navigationBackground : "color:///f5f5f5"
54− source: "graphics/dash_divider_top_lightgrad.png"
57− readonly property bool bothVisible: navigationButton.visible & altNavigationButton.visible
58− width: root.openList && bothVisible ? navigationButton.width : root.width
59− x: !bothVisible ? 0 :
60− navigationButton.showList ? altNavigationButton.x :
61− altNavigationButton.showList ? navigationButton.x : 0
66− bottom: parent.bottom
67− left: topGradient.left
68− right: topGradient.right
70− fillMode: Image.Stretch
71− source: "graphics/dash_divider_top_darkgrad.png"
75 DashNavigationButton {
58 DashNavigationButton {
@@ -83,6 +66,19 @@ Item {
83 isAltNavigation: true
66 isAltNavigation: true
70+ visible: navigationButton.visible && altNavigationButton.visible
73+ bottom: parent.bottom
74+ right: navigationButton.left
75+ rightMargin: -units.dp(1)
78+ color: scopeStyle ? (background.luminance > scopeStyle.threshold ? scopeStyle.dark : scopeStyle.light) : Theme.palette.normal.baseText
86 DashNavigationButton {
82 DashNavigationButton {
87 id: navigationButton
83 id: navigationButton
88 objectName: "navigationButton"
84 objectName: "navigationButton"
@@ -94,4 +90,40 @@ Item {
94 listView.width: root.width
90 listView.width: root.width
95 listView.x: -x
91 listView.x: -x
96+ fillMode: Image.Stretch
97+ source: "graphics/navigation_shadow.png"
99+ readonly property bool bothVisible: navigationButton.visible & altNavigationButton.visible
106+ when: !dropShadow.bothVisible || (!altNavigationButton.showList && !navigationButton.showList)
107+ PropertyChanges { target: dropShadow; width: root.width; x: 0; rotation: 0 }
108+ AnchorChanges { target: dropShadow; anchors.top: parent.bottom; anchors.bottom: undefined }
112+ PropertyChanges { target: dropShadow; width: navigationButton.width; rotation: 180 }
113+ AnchorChanges { target: dropShadow; anchors.bottom: parent.bottom; anchors.top: undefined }
118+ when: dropShadow.bothVisible && navigationButton.showList
119+ PropertyChanges { target: dropShadow; x: altNavigationButton.x }
124+ when: dropShadow.bothVisible && altNavigationButton.showList
125+ PropertyChanges { target: dropShadow; x: navigationButton.x }