aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-08-08 10:48:06 +0200
committerJaquee <jaquee.monero@gmail.com>2017-11-03 16:57:11 +0100
commitaec65db8c3919692a6243458af18d087f6385f50 (patch)
treea0ebdf6fb09946117854252c7881a36ef9a084b3
parent1c7f529141f4da0a2ab7981c7c1e18daa757e566 (diff)
downloadmonzero-gui-aec65db8c3919692a6243458af18d087f6385f50.tar.gz
monzero-gui-aec65db8c3919692a6243458af18d087f6385f50.tar.xz
monzero-gui-aec65db8c3919692a6243458af18d087f6385f50.zip
add mobile menu
-rw-r--r--components/TitleBar.qml9
-rw-r--r--images/menu.pngbin0 -> 1609 bytes
-rw-r--r--qml.qrc1
3 files changed, 7 insertions, 3 deletions
diff --git a/components/TitleBar.qml b/components/TitleBar.qml
index 8f147322..531d5196 100644
--- a/components/TitleBar.qml
+++ b/components/TitleBar.qml
@@ -28,6 +28,7 @@
import QtQuick 2.2
import QtQuick.Window 2.0
+import QtQuick.Layouts 1.1
Rectangle {
id: titleBar
@@ -53,6 +54,7 @@ Rectangle {
}
Rectangle {
+
id: goToBasicVersionButton
property bool containsMouse: titleBar.mouseX >= x && titleBar.mouseX <= x + width
property bool checked: false
@@ -64,10 +66,10 @@ Rectangle {
visible: isMobile
Image {
+ width: parent.width * 2/3;
+ height: width;
anchors.centerIn: parent
- rotation: !leftPanel.visible ? 180 : 0
- source: parent.customDecorations || !leftPanel.visible ? "../images/goToBasicVersionHovered.png" :
- "../images/gotoBasicVersion.png"
+ source: "../images/menu.png"
}
MouseArea {
@@ -75,6 +77,7 @@ Rectangle {
hoverEnabled: true
anchors.fill: parent
onClicked: {
+ releaseFocus()
parent.checked = !parent.checked
titleBar.goToBasicVersion(leftPanel.visible)
}
diff --git a/images/menu.png b/images/menu.png
new file mode 100644
index 00000000..95378c69
--- /dev/null
+++ b/images/menu.png
Binary files differ
diff --git a/qml.qrc b/qml.qrc
index a8ba7c87..7f1b3c37 100644
--- a/qml.qrc
+++ b/qml.qrc
@@ -147,5 +147,6 @@
<file>wizard/WizardDaemonSettings.qml</file>
<file>components/RemoteNodeEdit.qml</file>
<file>pages/Keys.qml</file>
+ <file>images/menu.png</file>
</qresource>
</RCC>