@@ -34,13 +34,16 @@ Item {
34 return null;
34 return null;
37+ // FIXME this is only here for highlight purposes (see Background.qml, too)
38+ readonly property var background: backgroundItem
37 visible: navigationButton.currentNavigation || altNavigationButton.currentNavigation
40 visible: navigationButton.currentNavigation || altNavigationButton.currentNavigation
39 height: visible ? units.gu(5) : 0
42 height: visible ? units.gu(5) : 0
41 QtObject {
44 QtObject {
43− readonly property color foregroundColor: scopeStyle.getTextColor(background.luminance)
46+ readonly property color foregroundColor: scopeStyle.getTextColor(backgroundItem.luminance)
44 readonly property bool bothVisible: altNavigationButton.visible && navigationButton.visible
47 readonly property bool bothVisible: altNavigationButton.visible && navigationButton.visible
45 readonly property real navigationWidth: root.width >= units.gu(60) ? units.gu(40) : root.width
48 readonly property real navigationWidth: root.width >= units.gu(60) ? units.gu(40) : root.width
46 readonly property real buttonWidth: navigationWidth / (bothVisible ? 2 : 1)
49 readonly property real buttonWidth: navigationWidth / (bothVisible ? 2 : 1)
@@ -56,7 +59,7 @@ Item {
58 Background {
61 Background {
59− id: background
62+ id: backgroundItem
60 anchors.fill: parent
63 anchors.fill: parent
61 style: scopeStyle ? scopeStyle.navigationBackground : "color:///f5f5f5"
64 style: scopeStyle ? scopeStyle.navigationBackground : "color:///f5f5f5"
@@ -98,7 +101,7 @@ Item {
100 fillMode: Image.Stretch
103 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"
102 x: navigationButton.listView.height > 0 ? altNavigationButton.x : navigationButton.x
105 x: navigationButton.listView.height > 0 ? altNavigationButton.x : navigationButton.x
103 width: d.buttonWidth
106 width: d.buttonWidth
104 rotation: 180
107 rotation: 180