text: qsTr("About")
onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
}
+
+ MenuItem {
+ text: qsTr("The Pedalo Rules")
+ onClicked: pageStack.push(Qt.resolvedUrl("TheRules.qml"))
+ }
}
// Tell SilicaFlickable the height of its content.
spacing: 0
BarButton {
- source: "image://theme/icon-launcher-component-gallery"
+ source: (currentStatus.cycling ? "image://pedalo/button-journey-finish?" : "image://pedalo/button-journey-start?") + (pressed ? Theme.primaryColor : Theme.highlightColor)
text: currentStatus.cycling ? qsTr("Finish your journey") : qsTr("Start a journey")
onClicked: {
if (currentStatus.cycling) {
}
BarButton {
- source: "image://theme/icon-launcher-component-gallery"
- text: "Add a journey"
+ source: "image://pedalo/button-journey-add?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
+ text: qsTr("Add a journey")
onClicked: pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"))
}
}
x: isPortrait ? 0 : page.width / 2.0
BarButton {
- source: "image://theme/icon-launcher-component-gallery"
- text: "View latest stats"
+ source: "image://pedalo/button-stats?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
+ text: qsTr("View latest stats")
onClicked: pageStack.push(Qt.resolvedUrl("Stats.qml"))
}
BarButton {
- source: "image://theme/icon-launcher-component-gallery"
- text: "Previous journeys"
+ source: "image://pedalo/button-list?" + (pressed ? Theme.primaryColor : Theme.highlightColor)
+ text: qsTr("Previous journeys")
onClicked: pageStack.push(Qt.resolvedUrl("JourneyList.qml"))
}
}