summaryrefslogtreecommitdiff
path: root/gui/components/Footer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/components/Footer.qml')
-rw-r--r--gui/components/Footer.qml63
1 files changed, 63 insertions, 0 deletions
diff --git a/gui/components/Footer.qml b/gui/components/Footer.qml
new file mode 100644
index 0000000..2c7c875
--- /dev/null
+++ b/gui/components/Footer.qml
@@ -0,0 +1,63 @@
+import QtQuick 2.0
+import QtQuick.Controls 2.4
+import QtQuick.Controls.Material 2.1
+import QtQuick.Layouts 1.14
+
+ToolBar {
+
+ Material.background: Material.backgroundColor
+ Material.foreground: "black"
+ Material.elevation: 0
+ visible: stackView.depth > 1 && ctx !== undefined ? false : true
+
+ Item {
+
+ id: footerRow
+ width: root.width
+
+ ToolButton {
+ id: gwButton
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.leftMargin: 10
+ anchors.left: parent.left
+ anchors.verticalCenterOffset: 5
+ icon.source: stackView.depth > 1 ? "" : "../resources/globe.svg"
+ onClicked: stackView.push("Locations.qml")
+ }
+
+ Label {
+ id: locationLabel
+ anchors.left: gwButton.right
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.verticalCenterOffset: 5
+ text: "Seattle"
+ }
+
+ Item {
+ Layout.fillWidth: true
+ height: gwButton.implicitHeight
+ }
+
+ Image {
+ id: bridge
+ height: 24
+ width: 24
+ source: "../resources/bridge.png"
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.verticalCenterOffset: 5
+ anchors.right: gwQuality.left
+ anchors.rightMargin: 10
+ }
+
+ Image {
+ id: gwQuality
+ height: 24
+ width: 24
+ source: "../resources/reception-0.svg"
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.verticalCenterOffset: 5
+ }
+ }
+}