mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Settings page WIP
This commit is contained in:
parent
a1cdb572e2
commit
d654ec1647
@ -51,27 +51,33 @@ Rectangle {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: mainLayout
|
id: mainLayout
|
||||||
anchors.margins: 17 * scaleRatio
|
anchors.margins: (isMobile)? 17 : 40
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
spacing: 10 * scaleRatio
|
spacing: 26 * scaleRatio
|
||||||
|
|
||||||
//! Manage wallet
|
//! Manage wallet
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
Label {
|
Label {
|
||||||
id: manageWalletLabel
|
id: manageWalletLabel
|
||||||
|
fontSize: 22 * scaleRatio
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: qsTr("Manage wallet") + translationManager.emptyString
|
text: qsTr("Manage wallet") + translationManager.emptyString
|
||||||
Layout.topMargin: 10 * scaleRatio
|
Layout.topMargin: 10 * scaleRatio
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
anchors.top: manageWalletLabel.bottom
|
||||||
height: 1
|
anchors.topMargin: 4
|
||||||
color: Style.dividerColor
|
anchors.left: parent.left
|
||||||
opacity: Style.dividerOpacity
|
anchors.right: parent.right
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height: 2
|
||||||
|
color: Style.dividerColor
|
||||||
|
opacity: Style.dividerOpacity
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
@ -209,21 +215,21 @@ Rectangle {
|
|||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Label {
|
Label {
|
||||||
id: manageDaemonLabel
|
id: manageDaemonLabel
|
||||||
|
fontSize: 22 * scaleRatio
|
||||||
text: qsTr("Manage Daemon") + translationManager.emptyString
|
text: qsTr("Manage Daemon") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
Rectangle {
|
||||||
id: daemonAdvanced
|
anchors.top: manageDaemonLabel.bottom
|
||||||
Layout.leftMargin: 15
|
anchors.topMargin: 4
|
||||||
text: qsTr("Show advanced") + translationManager.emptyString
|
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 {
|
GridLayout {
|
||||||
visible: !isMobile && !persistentSettings.useRemoteNode
|
visible: !isMobile && !persistentSettings.useRemoteNode
|
||||||
@ -292,12 +298,19 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout{
|
||||||
|
CheckBox {
|
||||||
|
id: daemonAdvanced
|
||||||
|
text: qsTr("Show advanced") + translationManager.emptyString
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: daemonAdvanced.checked && !isMobile && !persistentSettings.useRemoteNode
|
visible: daemonAdvanced.checked && !isMobile && !persistentSettings.useRemoteNode
|
||||||
id: daemonFlagsRow
|
id: daemonFlagsRow
|
||||||
Label {
|
Label {
|
||||||
id: daemonFlagsLabel
|
id: daemonFlagsLabel
|
||||||
|
fontSize: 16 * scaleRatio
|
||||||
text: qsTr("Local daemon startup flags") + translationManager.emptyString
|
text: qsTr("Local daemon startup flags") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
LineEdit {
|
LineEdit {
|
||||||
@ -314,10 +327,10 @@ Rectangle {
|
|||||||
visible: (daemonAdvanced.checked || isMobile) && persistentSettings.useRemoteNode
|
visible: (daemonAdvanced.checked || isMobile) && persistentSettings.useRemoteNode
|
||||||
Label {
|
Label {
|
||||||
id: daemonLoginLabel
|
id: daemonLoginLabel
|
||||||
|
fontSize: 16 * scaleRatio
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: qsTr("Node login (optional)") + translationManager.emptyString
|
text: qsTr("Node login (optional)") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@ -330,7 +343,6 @@ Rectangle {
|
|||||||
placeholderText: qsTr("Username") + translationManager.emptyString
|
placeholderText: qsTr("Username") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LineEdit {
|
LineEdit {
|
||||||
id: daemonPassword
|
id: daemonPassword
|
||||||
Layout.preferredWidth: 100 * scaleRatio
|
Layout.preferredWidth: 100 * scaleRatio
|
||||||
@ -365,8 +377,27 @@ Rectangle {
|
|||||||
visible: persistentSettings.useRemoteNode
|
visible: persistentSettings.useRemoteNode
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Label {
|
Label {
|
||||||
|
id: remoteNodeLabel
|
||||||
|
fontSize: 22 * scaleRatio
|
||||||
text: qsTr("Remote node") + translationManager.emptyString
|
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 {
|
RemoteNodeEdit {
|
||||||
id: remoteNodeEdit
|
id: remoteNodeEdit
|
||||||
Layout.minimumWidth: 100 * scaleRatio
|
Layout.minimumWidth: 100 * scaleRatio
|
||||||
@ -400,17 +431,23 @@ Rectangle {
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
visible: !isMobile
|
visible: !isMobile
|
||||||
Label {
|
Label {
|
||||||
|
id: layoutSettingsLabel
|
||||||
|
fontSize: 22 * scaleRatio
|
||||||
text: qsTr("Layout settings") + translationManager.emptyString
|
text: qsTr("Layout settings") + translationManager.emptyString
|
||||||
anchors.topMargin: 30 * scaleRatio
|
anchors.topMargin: 30 * scaleRatio
|
||||||
Layout.topMargin: 30 * scaleRatio
|
Layout.topMargin: 30 * scaleRatio
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
visible: !isMobile
|
anchors.top: layoutSettingsLabel.bottom
|
||||||
Layout.fillWidth: true
|
anchors.topMargin: 4
|
||||||
height: 1
|
anchors.left: parent.left
|
||||||
color: Style.dividerColor
|
anchors.right: parent.right
|
||||||
opacity: Style.dividerOpacity
|
Layout.fillWidth: true
|
||||||
|
height: 2
|
||||||
|
color: Style.dividerColor
|
||||||
|
opacity: Style.dividerOpacity
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@ -427,17 +464,25 @@ Rectangle {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Label {
|
Label {
|
||||||
|
id: logLevelLabel
|
||||||
|
fontSize: 22 * scaleRatio
|
||||||
text: qsTr("Log level") + translationManager.emptyString
|
text: qsTr("Log level") + translationManager.emptyString
|
||||||
anchors.topMargin: 30 * scaleRatio
|
anchors.topMargin: 30 * scaleRatio
|
||||||
Layout.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 {
|
ColumnLayout {
|
||||||
ComboBox {
|
ComboBox {
|
||||||
id: logLevel
|
id: logLevel
|
||||||
@ -475,18 +520,25 @@ Rectangle {
|
|||||||
// Version
|
// Version
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Label {
|
Label {
|
||||||
|
id: debugLabel
|
||||||
text: qsTr("Debug info") + translationManager.emptyString
|
text: qsTr("Debug info") + translationManager.emptyString
|
||||||
fontSize: 16
|
fontSize: 22
|
||||||
anchors.topMargin: 30 * scaleRatio
|
anchors.topMargin: 30 * scaleRatio
|
||||||
Layout.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 {
|
TextBlock {
|
||||||
Layout.topMargin: 8
|
Layout.topMargin: 8
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Loading…
Reference in New Issue
Block a user