From 01054f25498bf2213e265fa60430a50a2ba8de05 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 7 Nov 2018 20:16:33 +0000 Subject: [PATCH] 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 0000000000000000000000000000000000000000..37fcfbcd20933916a0e56a4a921a2e993745fb73 GIT binary patch literal 378 zcmeAS@N?(olHy`uVBq!ia0vp@KrFz)1|-ie{%Q%NSc;uILpXq-h9ji|$mcBZh%9Dc z;5Pta#xuSGdO$(R64!{5;QX|b^2DN4hVt@qz0ADq;^f4FRK5J7^x5xhq=1UPd%8G= zXiS_s*;b#`QKEHzICr_tILCI^F6DA?XP5)#^~0ouKaw!$tm=J#0IVyhV0a| z8LV=PG>&s@V45R#)5-JqoJrhH9R9D2Hq5xden8^`=N+cm^?N(M|L{AUHBo-O{Juu% z1nwK^nJ&?nc15kME>(UtbJ;8(#g@|U7z7NSu6{1-oD!M<$Cr+i literal 0 HcmV?d00001 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