on xenial help sign in
Add light shadow and change single-nav z-stack to be consistent with dual-nav
099851aMichał Sawicz
qml/Dash/DashNavigation.qml+7−8
@@ -64,6 +64,12 @@ Item {
64 style: scopeStyle ? scopeStyle.navigationBackground : "color:///f5f5f5"
64 style: scopeStyle ? scopeStyle.navigationBackground : "color:///f5f5f5"
65 }
65 }
66
66
67+ Image {
68+ fillMode: Image.Stretch
69+ source: scopeStyle.backgroundLuminance > 0.7 ? "graphics/navigation_shadow.png" : "graphics/navigation_shadow_light.png"
70+ anchors { top: parent.bottom; left: parent.left; right: parent.right }
71+ }
72+
67 DashNavigationButton {
73 DashNavigationButton {
68 id: altNavigationButton
74 id: altNavigationButton
69 objectName: "altNavigationButton"
75 objectName: "altNavigationButton"
@@ -95,14 +101,7 @@ Item {
95
101
96 Image {
102 Image {
97 fillMode: Image.Stretch
103 fillMode: Image.Stretch
98− source: "graphics/navigation_shadow.png"
104+ source: background.luminance > 0.7 ? "graphics/navigation_shadow.png" : "graphics/navigation_shadow_light.png"
99− anchors { top: parent.bottom; left: parent.left; right: parent.right }
100− z: d.bothVisible ? -1 : 0
101− }
102−
103− Image {
104− fillMode: Image.Stretch
105− source: "graphics/navigation_shadow.png"
106 x: navigationButton.listView.height > 0 ? altNavigationButton.x : navigationButton.x
105 x: navigationButton.listView.height > 0 ? altNavigationButton.x : navigationButton.x
107 width: d.buttonWidth
106 width: d.buttonWidth
108 rotation: 180
107 rotation: 180
qml/Dash/graphics/navigation_shadow_light@18.pngnew file

Binary file not shown.