@@ -34,13 +34,16 @@ Item {
3434 return null;
3535 }
3636
37+ // FIXME this is only here for highlight purposes (see Background.qml, too)
38+ readonly property var background: backgroundItem
39+
3740 visible: navigationButton.currentNavigation || altNavigationButton.currentNavigation
3841
3942 height: visible ? units.gu(5) : 0
4043
4144 QtObject {
4245 id: d
43− readonly property color foregroundColor: scopeStyle.getTextColor(background.luminance)
46+ readonly property color foregroundColor: scopeStyle.getTextColor(backgroundItem.luminance)
4447 readonly property bool bothVisible: altNavigationButton.visible && navigationButton.visible
4548 readonly property real navigationWidth: root.width >= units.gu(60) ? units.gu(40) : root.width
4649 readonly property real buttonWidth: navigationWidth / (bothVisible ? 2 : 1)
@@ -56,7 +59,7 @@ Item {
5659 }
5760
5861 Background {
59− id: background
62+ id: backgroundItem
6063 anchors.fill: parent
6164 style: scopeStyle ? scopeStyle.navigationBackground : "color:///f5f5f5"
6265 }
@@ -98,7 +101,7 @@ Item {
98101
99102 Image {
100103 fillMode: Image.Stretch
101− source: background.luminance > 0.7 ? "graphics/navigation_shadow.png" : "graphics/navigation_shadow_light.png"
104+ source: backgroundItem.luminance > 0.7 ? "graphics/navigation_shadow.png" : "graphics/navigation_shadow_light.png"
102105 x: navigationButton.listView.height > 0 ? altNavigationButton.x : navigationButton.x
103106 width: d.buttonWidth
104107 rotation: 180