aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2017-12-09 00:02:43 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:02 +0100
commitd654ec164770b41b0f25cac5dcbd05f72a32723e (patch)
tree04c2d617a1c8592090e86e0ce60b12a17e16ff45
parenta1cdb572e2d80eb86de79939613bd09857ca951d (diff)
downloadmonzero-gui-d654ec164770b41b0f25cac5dcbd05f72a32723e.tar.gz
monzero-gui-d654ec164770b41b0f25cac5dcbd05f72a32723e.tar.xz
monzero-gui-d654ec164770b41b0f25cac5dcbd05f72a32723e.zip
Settings page WIP
-rw-r--r--pages/Settings.qml132
1 files changed, 92 insertions, 40 deletions
diff --git a/pages/Settings.qml b/pages/Settings.qml
index 7b3c847a..c4213870 100644
--- a/pages/Settings.qml
+++ b/pages/Settings.qml
@@ -51,27 +51,33 @@ Rectangle {
ColumnLayout {
id: mainLayout
- anchors.margins: 17 * scaleRatio
+ anchors.margins: (isMobile)? 17 : 40
anchors.left: parent.left
anchors.top: parent.top
anchors.right: parent.right
- spacing: 10 * scaleRatio
+ spacing: 26 * scaleRatio
//! Manage wallet
RowLayout {
+ Layout.fillWidth: true
Label {
id: manageWalletLabel
+ fontSize: 22 * scaleRatio
Layout.fillWidth: true
text: qsTr("Manage wallet") + translationManager.emptyString
Layout.topMargin: 10 * scaleRatio
}
- }
- Rectangle {
- Layout.fillWidth: true
- height: 1
- color: Style.dividerColor
- opacity: Style.dividerOpacity
+ Rectangle {
+ anchors.top: manageWalletLabel.bottom
+ anchors.topMargin: 4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ Layout.fillWidth: true
+ height: 2
+ color: Style.dividerColor
+ opacity: Style.dividerOpacity
+ }
}
GridLayout {
@@ -209,21 +215,21 @@ Rectangle {
Layout.topMargin: 20
Label {
id: manageDaemonLabel
+ fontSize: 22 * scaleRatio
text: qsTr("Manage Daemon") + translationManager.emptyString
}
- CheckBox {
- id: daemonAdvanced
- Layout.leftMargin: 15
- text: qsTr("Show advanced") + translationManager.emptyString
+ Rectangle {
+ anchors.top: manageDaemonLabel.bottom
+ anchors.topMargin: 4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ Layout.fillWidth: true
+ height: 2
+ color: Style.dividerColor
+ opacity: Style.dividerOpacity
}
}
- Rectangle {
- Layout.fillWidth: true
- height: 1
- color: Style.dividerColor
- opacity: Style.dividerOpacity
- }
GridLayout {
visible: !isMobile && !persistentSettings.useRemoteNode
@@ -292,12 +298,19 @@ Rectangle {
}
}
+ RowLayout{
+ CheckBox {
+ id: daemonAdvanced
+ text: qsTr("Show advanced") + translationManager.emptyString
+ }
+ }
RowLayout {
visible: daemonAdvanced.checked && !isMobile && !persistentSettings.useRemoteNode
id: daemonFlagsRow
Label {
id: daemonFlagsLabel
+ fontSize: 16 * scaleRatio
text: qsTr("Local daemon startup flags") + translationManager.emptyString
}
LineEdit {
@@ -314,10 +327,10 @@ Rectangle {
visible: (daemonAdvanced.checked || isMobile) && persistentSettings.useRemoteNode
Label {
id: daemonLoginLabel
+ fontSize: 16 * scaleRatio
Layout.fillWidth: true
text: qsTr("Node login (optional)") + translationManager.emptyString
}
-
}
ColumnLayout {
@@ -330,7 +343,6 @@ Rectangle {
placeholderText: qsTr("Username") + translationManager.emptyString
}
-
LineEdit {
id: daemonPassword
Layout.preferredWidth: 100 * scaleRatio
@@ -365,8 +377,27 @@ Rectangle {
visible: persistentSettings.useRemoteNode
ColumnLayout {
Label {
+ id: remoteNodeLabel
+ fontSize: 22 * scaleRatio
text: qsTr("Remote node") + translationManager.emptyString
}
+
+ Rectangle {
+ anchors.top: remoteNodeLabel.bottom
+ anchors.topMargin: 4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ Layout.fillWidth: true
+ height: 2
+ color: Style.dividerColor
+ opacity: Style.dividerOpacity
+ }
+ }
+ }
+
+ RowLayout {
+ visible: persistentSettings.useRemoteNode
+ ColumnLayout{
RemoteNodeEdit {
id: remoteNodeEdit
Layout.minimumWidth: 100 * scaleRatio
@@ -400,17 +431,23 @@ Rectangle {
RowLayout {
visible: !isMobile
Label {
+ id: layoutSettingsLabel
+ fontSize: 22 * scaleRatio
text: qsTr("Layout settings") + translationManager.emptyString
anchors.topMargin: 30 * scaleRatio
Layout.topMargin: 30 * scaleRatio
}
- }
- Rectangle {
- visible: !isMobile
- Layout.fillWidth: true
- height: 1
- color: Style.dividerColor
- opacity: Style.dividerOpacity
+
+ Rectangle {
+ anchors.top: layoutSettingsLabel.bottom
+ anchors.topMargin: 4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ Layout.fillWidth: true
+ height: 2
+ color: Style.dividerColor
+ opacity: Style.dividerOpacity
+ }
}
RowLayout {
@@ -427,17 +464,25 @@ Rectangle {
RowLayout {
Label {
+ id: logLevelLabel
+ fontSize: 22 * scaleRatio
text: qsTr("Log level") + translationManager.emptyString
anchors.topMargin: 30 * scaleRatio
Layout.topMargin: 30 * scaleRatio
}
+
+ Rectangle {
+ anchors.top: logLevelLabel.bottom
+ anchors.topMargin: 4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ Layout.fillWidth: true
+ height: 2
+ color: Style.dividerColor
+ opacity: Style.dividerOpacity
+ }
}
- Rectangle {
- Layout.fillWidth: true
- height: 1
- color: Style.dividerColor
- opacity: Style.dividerOpacity
- }
+
ColumnLayout {
ComboBox {
id: logLevel
@@ -475,18 +520,25 @@ Rectangle {
// Version
RowLayout {
Label {
+ id: debugLabel
text: qsTr("Debug info") + translationManager.emptyString
- fontSize: 16
+ fontSize: 22
anchors.topMargin: 30 * scaleRatio
Layout.topMargin: 30 * scaleRatio
}
+
+ Rectangle {
+ anchors.top: debugLabel.bottom
+ anchors.topMargin: 4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ Layout.fillWidth: true
+ height: 2
+ color: Style.dividerColor
+ opacity: Style.dividerOpacity
+ }
}
- Rectangle {
- Layout.fillWidth: true
- height: 1
- color: Style.dividerColor
- opacity: Style.dividerOpacity
- }
+
TextBlock {
Layout.topMargin: 8
Layout.fillWidth: true