From 15f2efc9aa77893d5300d198dd3b5c42549018e8 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 27 Aug 2021 19:45:41 +0200 Subject: [ui] refactor ui --- gui/components/Footer.qml | 63 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 gui/components/Footer.qml (limited to 'gui/components/Footer.qml') 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 + } + } +} -- cgit v1.2.3