From d760232af98a7699dcddaea3fe1d58a0fd519b43 Mon Sep 17 00:00:00 2001 From: "moneromooo.monero" Date: Sun, 18 Dec 2016 11:28:30 +0000 Subject: [PATCH] LeftPanel: rejig some options to second level --- LeftPanel.qml | 115 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 70 insertions(+), 45 deletions(-) diff --git a/LeftPanel.qml b/LeftPanel.qml index c8d696da..ffdbd760 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -246,6 +246,31 @@ Rectangle { height: 1 } + // ------------- AddressBook tab --------------- + + MenuButton { + id: addressBookButton + anchors.left: parent.left + anchors.right: parent.right + text: qsTr("Address book") + translationManager.emptyString + symbol: qsTr("B") + translationManager.emptyString + dotColor: "#FF4F41" + under: transferButton + onClicked: { + parent.previousButton.checked = false + parent.previousButton = addressBookButton + panel.addressBookClicked() + } + } + + Rectangle { + anchors.left: parent.left + anchors.right: parent.right + anchors.leftMargin: 16 + color: "#505050" + height: 1 + } + // ------------- Receive tab --------------- MenuButton { id: receiveButton @@ -267,27 +292,6 @@ Rectangle { color: "#505050" height: 1 } - // ------------- TxKey tab --------------- - MenuButton { - id: txkeyButton - anchors.left: parent.left - anchors.right: parent.right - text: qsTr("Verify payment") + translationManager.emptyString - symbol: qsTr("K") + translationManager.emptyString - dotColor: "#AAFFBB" - onClicked: { - parent.previousButton.checked = false - parent.previousButton = txkeyButton - panel.txkeyClicked() - } - } - Rectangle { - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: 16 - color: "#505050" - height: 1 - } // ------------- History tab --------------- @@ -312,30 +316,6 @@ Rectangle { height: 1 } - // ------------- AddressBook tab --------------- - - MenuButton { - id: addressBookButton - anchors.left: parent.left - anchors.right: parent.right - text: qsTr("Address book") + translationManager.emptyString - symbol: qsTr("B") + translationManager.emptyString - dotColor: "#FF4F41" - onClicked: { - parent.previousButton.checked = false - parent.previousButton = addressBookButton - panel.addressBookClicked() - } - } - - Rectangle { - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: 16 - color: "#505050" - height: 1 - } - /* // ------------- Mining tab --------------- MenuButton { id: miningButton @@ -359,6 +339,50 @@ Rectangle { height: 1 } */ + // ------------- Advanced tab --------------- + MenuButton { + id: advancedButton + anchors.left: parent.left + anchors.right: parent.right + text: qsTr("Advanced") + translationManager.emptyString + symbol: qsTr("A") + translationManager.emptyString + dotColor: "#AAFFBB" + onClicked: { + parent.previousButton.checked = false + parent.previousButton = advancedButton + } + } + Rectangle { + anchors.left: parent.left + anchors.right: parent.right + anchors.leftMargin: 16 + color: "#505050" + height: 1 + } + + // ------------- TxKey tab --------------- + MenuButton { + id: txkeyButton + anchors.left: parent.left + anchors.right: parent.right + text: qsTr("Verify payment") + translationManager.emptyString + symbol: qsTr("K") + translationManager.emptyString + dotColor: "#AAFFBB" + under: advancedButton + onClicked: { + parent.previousButton.checked = false + parent.previousButton = txkeyButton + panel.txkeyClicked() + } + } + Rectangle { + anchors.left: parent.left + anchors.right: parent.right + anchors.leftMargin: 16 + color: "#505050" + height: 1 + } + // ------------- Sign/verify tab --------------- MenuButton { id: signButton @@ -367,6 +391,7 @@ Rectangle { text: qsTr("Sign/verify") + translationManager.emptyString symbol: qsTr("I") + translationManager.emptyString dotColor: "#AAFFBB" + under: advancedButton onClicked: { parent.previousButton.checked = false parent.previousButton = signButton