diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2022-10-22 14:35:59 +0100 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-07 14:19:29 +0000 |
commit | cf634a3ed47e756d70f0228044ebd0be794886f9 (patch) | |
tree | fc45a5adae1088a8ff61b886d0cae9f7a457db60 /src/SettingsPage.qml | |
parent | 95c72f71f9382e3bf2918892edc1e7137391554d (diff) |
Add a settings page
Diffstat (limited to '')
-rw-r--r-- | src/SettingsPage.qml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/SettingsPage.qml b/src/SettingsPage.qml new file mode 100644 index 0000000..189ebe4 --- /dev/null +++ b/src/SettingsPage.qml @@ -0,0 +1,60 @@ +import QtQuick 2.0 +import org.asteroid.controls 1.0 +import QtPositioning 5.15 +import QtLocation 5.15 + +Item { + id: root + PageHeader { + text: "Map settings" + } + Flickable { + anchors.fill: parent + contentHeight: contentColumn.implicitHeight + anchors.leftMargin: root.width*0.15 + anchors.rightMargin: root.width*0.15 + Column { + id: contentColumn + anchors.fill: parent + Item { + height: root.height*0.1 + width: parent.width + } + LabeledSwitch { + width: parent.width + height: width*0.2 + text: "show zoom controls" + } + LabeledSwitch { + width: parent.width + height: width*0.2 + text: "center on GPS" + } + Row { + width: parent.width + height: width*0.2 + // Icon { + // name: "ios-information-circle-outline" + // height: parent.height + // width: height + // } + Column { + height: parent.height + width: parent.width - parent.height + Label { + text: "Map Data © OpenStreetMap contributors" + height: parent.height*0.5 + width: parent.width + font.pixelSize: root.width*0.05 + } + Label { + text: "under the ODbL" + height: parent.height*0.5 + width: parent.width + font.pixelSize: root.width*0.05 + } + } + } + } + } +} |