diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-01-09 17:43:31 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-01-09 17:43:31 -0600 |
| commit | 5a682b37ecef5407ff44ca5d32b1610750702bbb (patch) | |
| tree | 5d3c10979773aedca3d67c781dfc74a790231d56 /MiddlePanel.qml | |
| parent | 97de72b27d56e7869c5e3c13ed3a15db033d0043 (diff) | |
| parent | 85cd428dcb46763e626c1c9bae1c27b44d617d4f (diff) | |
| download | monzero-gui-5a682b37ecef5407ff44ca5d32b1610750702bbb.tar.gz monzero-gui-5a682b37ecef5407ff44ca5d32b1610750702bbb.tar.xz monzero-gui-5a682b37ecef5407ff44ca5d32b1610750702bbb.zip | |
Merge pull request #1793
85cd428 Merchant page (xmrdsc)
Diffstat (limited to 'MiddlePanel.qml')
| -rw-r--r-- | MiddlePanel.qml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml index d47e3685..69d14d0f 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -38,6 +38,8 @@ import moneroComponents.Wallet 1.0 import "components" as MoneroComponents import "./pages" import "./pages/settings" +import "./pages/merchant" +import "components" as MoneroComponents Rectangle { id: root @@ -56,6 +58,7 @@ Rectangle { property Transfer transferView: Transfer { } property Receive receiveView: Receive { } + property Merchant merchantView: Merchant { } property TxKey txkeyView: TxKey { } property SharedRingDB sharedringdbView: SharedRingDB { } property History historyView: History { } @@ -72,11 +75,16 @@ Rectangle { signal getProofClicked(string txid, string address, string message); signal checkProofClicked(string txid, string address, string message, string signature); + Rectangle { + // grey background on merchantView + visible: currentView === merchantView + color: MoneroComponents.Style.moneroGrey + anchors.fill: parent + } + Image { - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: parent.bottom + anchors.fill: parent + visible: currentView !== merchantView source: "../images/middlePanelBg.jpg" } @@ -124,6 +132,10 @@ Rectangle { PropertyChanges { target: root; currentView: receiveView } PropertyChanges { target: mainFlickable; contentHeight: receiveView.receiveHeight + 100 } }, State { + name: "Merchant" + PropertyChanges { target: root; currentView: merchantView } + PropertyChanges { target: mainFlickable; contentHeight: merchantView.merchantHeight + 100 } + }, State { name: "TxKey" PropertyChanges { target: root; currentView: txkeyView } PropertyChanges { target: mainFlickable; contentHeight: 1200 * scaleRatio } @@ -172,8 +184,8 @@ Rectangle { ColumnLayout { anchors.fill: parent - anchors.margins: 18 - anchors.topMargin: appWindow.persistentSettings.customDecorations ? 50 : 0 + anchors.margins: currentView !== merchantView ? 20 * scaleRatio : 0 + anchors.topMargin: appWindow.persistentSettings.customDecorations ? 50 * scaleRatio : 0 spacing: 0 Flickable { |
