diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-10-06 19:23:00 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-23 21:51:19 +0100 |
commit | 49755a3271a19ab8e441406c7095e283a2d6241e (patch) | |
tree | d9ac87dc8d772e4d65f173c6c2bc2a77e10620de /gui/components/Footer.qml | |
parent | 94d6694a7b91f3ea5a8649f13a68a907e2bc95f3 (diff) |
[ui] pointing hand for locations and buttons
Diffstat (limited to 'gui/components/Footer.qml')
-rw-r--r-- | gui/components/Footer.qml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gui/components/Footer.qml b/gui/components/Footer.qml index a69f377..24b6cfa 100644 --- a/gui/components/Footer.qml +++ b/gui/components/Footer.qml @@ -1,4 +1,4 @@ -import QtQuick 2.0 +import QtQuick 2.15 import QtQuick.Controls 2.4 import QtQuick.Controls.Material 2.1 import QtQuick.Layouts 1.14 @@ -25,20 +25,17 @@ ToolBar { anchors { verticalCenter: parent.verticalCenter leftMargin: 10 - // TODO discuss where this should be aligned - //leftMargin: 22 left: parent.left verticalCenterOffset: 5 } - /* - background.implicitHeight: 32 - background.implicitWidth: 32 - */ icon { width: 20 height: 20 source: stackView.depth > 1 ? "" : "../resources/globe.svg" } + HoverHandler { + cursorShape: Qt.PointingHandCursor + } onClicked: stackView.push("Locations.qml") } @@ -64,14 +61,19 @@ ToolBar { Label { id: locationLabel + text: locationStr() + color: getLocationColor() anchors { left: lightning.right verticalCenter: parent.verticalCenter verticalCenterOffset: 7 leftMargin: (ctx != undefined & root.selectedGateway == "auto") ? 0 : -12 } - text: locationStr() - color: getLocationColor() + MouseArea { + cursorShape: Qt.PointingHandCursor + anchors.fill: parent + onClicked: stackView.push("Locations.qml") + } } Item { |