X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fpages%2FStats.qml;fp=qml%2Fpages%2FStats.qml;h=f6e319c60c9dd0cbe32be7243443cee3fd9128c6;hp=0000000000000000000000000000000000000000;hb=0108947ead4cc9e0ff23fee82db2fb1fd7cb2dad;hpb=ad970e5488e00f84c984a7c0fee09c089d8fe5d1 diff --git a/qml/pages/Stats.qml b/qml/pages/Stats.qml new file mode 100644 index 0000000..f6e319c --- /dev/null +++ b/qml/pages/Stats.qml @@ -0,0 +1,68 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 +import "../components" + +Page { + id: statsPage + + // The effective value will be restricted by ApplicationWindow.allowedOrientations + allowedOrientations: Orientation.All + + SilicaFlickable { + id: statsView + anchors.fill: parent + contentHeight: statsColumn.implicitHeight + + VerticalScrollDecorator {} + + Column { + id: statsColumn + spacing: Theme.paddingLarge + width: parent.width + + PageHeader { + title: qsTr("Stats") + } + + InfoRow { + label: qsTr("Journeys:") + value: "0" + midlineRatio: 0.7 + midlineMin: Theme.fontSizeSmall * 10 + midlineMax: Theme.fontSizeSmall * 15 + pixelSize: Theme.fontSizeMedium + labelTextBold: true + } + + InfoRow { + label: qsTr("Time spent cycling:") + value: "0" + midlineRatio: 0.7 + midlineMin: Theme.fontSizeSmall * 10 + midlineMax: Theme.fontSizeSmall * 15 + pixelSize: Theme.fontSizeMedium + labelTextBold: true + } + + InfoRow { + label: qsTr("Average journey duration:") + value: "0" + midlineRatio: 0.7 + midlineMin: Theme.fontSizeSmall * 10 + midlineMax: Theme.fontSizeSmall * 15 + pixelSize: Theme.fontSizeMedium + labelTextBold: true + } + + InfoRow { + label: qsTr("Speed percentile:") + value: "0%" + midlineRatio: 0.7 + midlineMin: Theme.fontSizeSmall * 10 + midlineMax: Theme.fontSizeSmall * 15 + pixelSize: Theme.fontSizeMedium + labelTextBold: true + } + } + } +}