X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fpages%2FMainPage.qml;fp=qml%2Fpages%2FMainPage.qml;h=8190afcdc723044433aafcaa77597920abcb2b5f;hp=4e7293c1fb217185fd219872f24740002e2f8317;hb=d8058e5edcec89d8103ead111f87dc9040323685;hpb=b0cf1cc508e82763046f46134347e8a37d7dddd6 diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index 4e7293c..8190afc 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -33,7 +33,7 @@ Page { 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) { @@ -50,7 +50,7 @@ Page { } BarButton { - source: "image://theme/icon-launcher-component-gallery" + source: "image://pedalo/button-journey-add?" + (pressed ? Theme.primaryColor : Theme.highlightColor) text: "Add a journey" onClicked: pageStack.push(Qt.resolvedUrl("JourneyEdit.qml")) } @@ -66,13 +66,13 @@ Page { x: isPortrait ? 0 : page.width / 2.0 BarButton { - source: "image://theme/icon-launcher-component-gallery" + source: "image://pedalo/button-stats?" + (pressed ? Theme.primaryColor : Theme.highlightColor) text: "View latest stats" onClicked: pageStack.push(Qt.resolvedUrl("Stats.qml")) } BarButton { - source: "image://theme/icon-launcher-component-gallery" + source: "image://pedalo/button-list?" + (pressed ? Theme.primaryColor : Theme.highlightColor) text: "Previous journeys" onClicked: pageStack.push(Qt.resolvedUrl("JourneyList.qml")) }