aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-01-14 01:02:44 +0100
committerdsc <xmrdsc@protonmail.com>2019-02-22 03:05:27 +0100
commitf329a710295deed3c15f2acff9a519c0a70e98e1 (patch)
tree95d2b1f6b8c31826a561d74d33368c1e9ef85d42 /pages
parent333f4aaf83bd64de02b07a56d86bbf90363e403b (diff)
downloadmonzero-gui-f329a710295deed3c15f2acff9a519c0a70e98e1.tar.gz
monzero-gui-f329a710295deed3c15f2acff9a519c0a70e98e1.tar.xz
monzero-gui-f329a710295deed3c15f2acff9a519c0a70e98e1.zip
Wizard redesign
Diffstat (limited to 'pages')
-rw-r--r--pages/Receive.qml1
-rw-r--r--pages/Transfer.qml11
-rw-r--r--pages/settings/Navbar.qml4
-rw-r--r--pages/settings/SettingsInfo.qml40
-rw-r--r--pages/settings/SettingsLayout.qml11
-rw-r--r--pages/settings/SettingsWallet.qml2
6 files changed, 65 insertions, 4 deletions
diff --git a/pages/Receive.qml b/pages/Receive.qml
index 926a8273..f9f54cd3 100644
--- a/pages/Receive.qml
+++ b/pages/Receive.qml
@@ -325,6 +325,7 @@ Rectangle {
}
function clearFields() {
+ // @TODO: add fields
}
function onPageClosed() {
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index d73db6ad..9c2f1787 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -443,6 +443,7 @@ Rectangle {
enabled: !viewOnly || pageRoot.enabled
RowLayout {
+ visible: appWindow.walletMode >= 2
CheckBox2 {
id: showAdvancedCheckbox
checked: persistentSettings.transferShowAdvanced
@@ -454,7 +455,7 @@ Rectangle {
}
GridLayout {
- visible: persistentSettings.transferShowAdvanced
+ visible: persistentSettings.transferShowAdvanced && appWindow.walletMode >= 2
columns: (isMobile) ? 2 : 6
StandardButton {
@@ -676,9 +677,11 @@ Rectangle {
//TODO: enable send page when we're connected and daemon is synced
function updateStatus() {
+ var messageNotConnected = qsTr("Wallet is not connected to daemon.");
+ if(appWindow.walletMode >= 2) messageNotConnected += root.startLinkText;
pageRoot.enabled = true;
if(typeof currentWallet === "undefined") {
- root.warningContent = qsTr("Wallet is not connected to daemon.") + root.startLinkText
+ root.warningContent = messageNotConnected;
return;
}
@@ -690,7 +693,7 @@ Rectangle {
switch (currentWallet.connected()) {
case Wallet.ConnectionStatus_Disconnected:
- root.warningContent = qsTr("Wallet is not connected to daemon.") + root.startLinkText
+ root.warningContent = messageNotConnected;
break
case Wallet.ConnectionStatus_WrongVersion:
root.warningContent = qsTr("Connected daemon is not compatible with GUI. \n" +
@@ -698,7 +701,7 @@ Rectangle {
break
default:
if(!appWindow.daemonSynced){
- root.warningContent = qsTr("Waiting on daemon synchronization to finish")
+ root.warningContent = qsTr("Waiting on daemon synchronization to finish.")
} else {
// everything OK, enable transfer page
// Light wallet is always ready
diff --git a/pages/settings/Navbar.qml b/pages/settings/Navbar.qml
index bf24fb0b..6d58582c 100644
--- a/pages/settings/Navbar.qml
+++ b/pages/settings/Navbar.qml
@@ -182,6 +182,7 @@ Rectangle {
ColumnLayout {
// NODE
id: navNode
+ visible: appWindow.walletMode >= 2
Layout.preferredWidth: navNodeText.width + grid.textMargin
Layout.preferredHeight: 32
Layout.minimumWidth: 72 * scaleRatio
@@ -225,6 +226,7 @@ Rectangle {
}
}
Rectangle{
+ visible: appWindow.walletMode >= 2
Layout.preferredWidth: 1
Layout.preferredHeight: 32
color: grid.borderColor
@@ -232,6 +234,7 @@ Rectangle {
ColumnLayout {
// LOG
id: navLog
+ visible: appWindow.walletMode >= 2
Layout.preferredWidth: navLogText.width + grid.textMargin
Layout.preferredHeight: 32
Layout.minimumWidth: 72 * scaleRatio
@@ -275,6 +278,7 @@ Rectangle {
}
}
Rectangle{
+ visible: appWindow.walletMode >= 2
Layout.preferredWidth: 1
Layout.preferredHeight: 32
color: grid.borderColor
diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml
index 8d1a98e5..e8f1b08a 100644
--- a/pages/settings/SettingsInfo.qml
+++ b/pages/settings/SettingsInfo.qml
@@ -39,6 +39,15 @@ Rectangle {
color: "transparent"
height: 1400 * scaleRatio
Layout.fillWidth: true
+ property string walletModeString: {
+ if(appWindow.walletMode === 0){
+ return qsTr("Simple mode") + translationManager.emptyString;
+ } else if(appWindow.walletMode === 1){
+ return qsTr("Simple mode") + " (bootstrap)" + translationManager.emptyString;
+ } else if(appWindow.walletMode === 2){
+ return qsTr("Advanced mode") + translationManager.emptyString;
+ }
+ }
ColumnLayout {
id: infoLayout
@@ -239,6 +248,36 @@ Rectangle {
font.pixelSize: 14 * scaleRatio
text: walletLogPath
}
+
+ Rectangle {
+ height: 1
+ Layout.topMargin: 2 * scaleRatio
+ Layout.bottomMargin: 2 * scaleRatio
+ Layout.fillWidth: true
+ color: MoneroComponents.Style.dividerColor
+ opacity: MoneroComponents.Style.dividerOpacity
+ }
+
+ Rectangle {
+ height: 1
+ Layout.topMargin: 2 * scaleRatio
+ Layout.bottomMargin: 2 * scaleRatio
+ Layout.fillWidth: true
+ color: MoneroComponents.Style.dividerColor
+ opacity: MoneroComponents.Style.dividerOpacity
+ }
+
+ MoneroComponents.TextBlock {
+ Layout.fillWidth: true
+ font.pixelSize: 14 * scaleRatio
+ text: qsTr("Wallet mode: ") + translationManager.emptyString
+ }
+
+ MoneroComponents.TextBlock {
+ Layout.fillWidth: true
+ font.pixelSize: 14 * scaleRatio
+ text: walletModeString
+ }
}
// Copy info to clipboard
@@ -261,6 +300,7 @@ Rectangle {
data += currentWallet.walletCreationHeight;
data += "\nWallet log path: " + walletLogPath;
+ data += "\nWallet mode: " + walletModeString;
console.log("Copied to clipboard");
clipboard.setText(data);
diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml
index 83f63845..91ada533 100644
--- a/pages/settings/SettingsLayout.qml
+++ b/pages/settings/SettingsLayout.qml
@@ -164,6 +164,17 @@ Rectangle {
}
}
+ MoneroComponents.StandardButton {
+ visible: !persistentSettings.customDecorations
+ Layout.topMargin: 10 * scaleRatio
+ small: true
+ text: "Change language"
+
+ onClicked: {
+ languageSidebar.isOpened ? languageSidebar.close() : languageSidebar.open();
+ }
+ }
+
MoneroComponents.TextBlock {
visible: isMobile
font.pixelSize: 14
diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml
index 9e6ac723..0293c931 100644
--- a/pages/settings/SettingsWallet.qml
+++ b/pages/settings/SettingsWallet.qml
@@ -258,6 +258,7 @@ Rectangle {
}
GridLayout {
+ visible: appWindow.walletMode >= 2
Layout.fillWidth: true
Layout.preferredHeight: settingsWallet.itemHeight
columnSpacing: 0
@@ -326,6 +327,7 @@ Rectangle {
}
Rectangle {
// divider
+ visible: appWindow.walletMode >= 2
Layout.preferredHeight: 1 * scaleRatio
Layout.fillWidth: true
Layout.topMargin: 8 * scaleRatio