From 01054f25498bf2213e265fa60430a50a2ba8de05 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 7 Nov 2018 20:16:33 +0000 Subject: left-panel: implement wallet 'Logout' shortcut button --- LeftPanel.qml | 28 ++++++++++++++++++++++++++++ images/logout.png | Bin 0 -> 378 bytes qml.qrc | 1 + 3 files changed, 29 insertions(+) create mode 100644 images/logout.png diff --git a/LeftPanel.qml b/LeftPanel.qml index e689ec13..9858a2c9 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -144,6 +144,34 @@ Rectangle { font.bold: true color: "#ff9323" } + + Rectangle { + height: (logoutImage.height + 8) * scaleRatio + width: (logoutImage.width + 8) * scaleRatio + color: "transparent" + anchors.right: parent.right + anchors.rightMargin: 8 + anchors.top: parent.top + anchors.topMargin: 25 + + Image { + id: logoutImage + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + height: 16 * scaleRatio + width: 13 * scaleRatio + source: "../images/logout.png" + } + + MouseArea{ + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + appWindow.showWizard(); + } + } + } } Item { diff --git a/images/logout.png b/images/logout.png new file mode 100644 index 00000000..37fcfbcd Binary files /dev/null and b/images/logout.png differ diff --git a/qml.qrc b/qml.qrc index 8081b0eb..b5689645 100644 --- a/qml.qrc +++ b/qml.qrc @@ -190,6 +190,7 @@ components/InlineButton.qml images/lightning.png images/leftPanelBg.jpg + images/logout.png images/moneroIcon-28x28.png images/lightning-white.png images/middlePanelBg.jpg -- cgit v1.2.3