aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2018-11-07 20:16:33 +0000
committerxiphon <xiphon@protonmail.com>2018-11-07 20:16:33 +0000
commit01054f25498bf2213e265fa60430a50a2ba8de05 (patch)
tree42a81607332257d33ed4052baf9cd01c202cc46b
parent6eb8c8c9d63d35d3a9daa9692301dd104936aefe (diff)
downloadmonzero-gui-01054f25498bf2213e265fa60430a50a2ba8de05.tar.gz
monzero-gui-01054f25498bf2213e265fa60430a50a2ba8de05.tar.xz
monzero-gui-01054f25498bf2213e265fa60430a50a2ba8de05.zip
left-panel: implement wallet 'Logout' shortcut button
-rw-r--r--LeftPanel.qml28
-rw-r--r--images/logout.pngbin0 -> 378 bytes
-rw-r--r--qml.qrc1
3 files changed, 29 insertions, 0 deletions
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
--- /dev/null
+++ b/images/logout.png
Binary files differ
diff --git a/qml.qrc b/qml.qrc
index 8081b0eb..b5689645 100644
--- a/qml.qrc
+++ b/qml.qrc
@@ -190,6 +190,7 @@
<file>components/InlineButton.qml</file>
<file>images/lightning.png</file>
<file>images/leftPanelBg.jpg</file>
+ <file>images/logout.png</file>
<file>images/moneroIcon-28x28.png</file>
<file>images/lightning-white.png</file>
<file>images/middlePanelBg.jpg</file>