aboutsummaryrefslogtreecommitdiff
path: root/LeftPanel.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-01-14 13:25:59 +0100
committerselsta <selsta@sent.at>2019-01-22 23:07:30 +0100
commitbd809abc52cc8d312c0023cfc9ae2d14e191d0b5 (patch)
tree0fa88add33f5c5aea7ebd492ce32f3a03ae07a40 /LeftPanel.qml
parent9689fff957ba994b619a2a7fb881598a997f66c2 (diff)
downloadmonzero-gui-bd809abc52cc8d312c0023cfc9ae2d14e191d0b5.tar.gz
monzero-gui-bd809abc52cc8d312c0023cfc9ae2d14e191d0b5.tar.xz
monzero-gui-bd809abc52cc8d312c0023cfc9ae2d14e191d0b5.zip
add account support
Co-authored-by: kenshi84 <kenshi84@protonmail.ch>
Diffstat (limited to 'LeftPanel.qml')
-rw-r--r--LeftPanel.qml29
1 files changed, 28 insertions, 1 deletions
diff --git a/LeftPanel.qml b/LeftPanel.qml
index 425c955c..fce19dec 100644
--- a/LeftPanel.qml
+++ b/LeftPanel.qml
@@ -61,6 +61,7 @@ Rectangle {
signal signClicked()
signal keysClicked()
signal merchantClicked()
+ signal accountClicked()
function selectItem(pos) {
menuColumn.previousButton.checked = false
@@ -76,7 +77,7 @@ Rectangle {
else if(pos === "Settings") menuColumn.previousButton = settingsButton
else if(pos === "Advanced") menuColumn.previousButton = advancedButton
else if(pos === "Keys") menuColumn.previousButton = keysButton
-
+ else if(pos === "Account") menuColumn.previousButton = accountButton
menuColumn.previousButton.checked = true
}
@@ -285,6 +286,8 @@ Rectangle {
anchors.leftMargin: 20
anchors.top: parent.top
anchors.topMargin: 60
+ elide: Text.ElideRight
+ textWidth: 238
}
Item { //separator
anchors.left: parent.left
@@ -331,6 +334,30 @@ Rectangle {
height: 1
}
+ // ------------- Account tab ---------------
+ MoneroComponents.MenuButton {
+ id: accountButton
+ anchors.left: parent.left
+ anchors.right: parent.right
+ text: qsTr("Account") + translationManager.emptyString
+ symbol: qsTr("T") + translationManager.emptyString
+ dotColor: "#44AAFF"
+ onClicked: {
+ parent.previousButton.checked = false
+ parent.previousButton = accountButton
+ panel.accountClicked()
+ }
+ }
+
+ Rectangle {
+ visible: accountButton.present
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.leftMargin: 16
+ color: "#313131"
+ height: 1
+ }
+
// ------------- Transfer tab ---------------
MoneroComponents.MenuButton {
id: transferButton