File tree Expand file tree Collapse file tree 9 files changed +49
-32
lines changed Expand file tree Collapse file tree 9 files changed +49
-32
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,7 @@ QML_RES_QML = \
336
336
qml/components/DeveloperOptions.qml \
337
337
qml/components/PeersIndicator.qml \
338
338
qml/components/NetworkIndicator.qml \
339
+ qml/components/Separator.qml \
339
340
qml/components/StorageLocations.qml \
340
341
qml/components/StorageOptions.qml \
341
342
qml/components/StorageSettings.qml \
Original file line number Diff line number Diff line change 10
10
<file>components/DeveloperOptions.qml</file>
11
11
<file>components/NetworkIndicator.qml</file>
12
12
<file>components/StorageLocations.qml</file>
13
+ <file>components/Separator.qml</file>
13
14
<file>components/StorageOptions.qml</file>
14
15
<file>components/StorageSettings.qml</file>
15
16
<file>controls/ContinueButton.qml</file>
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import QtQuick.Layouts 1.15
8
8
import "../controls"
9
9
10
10
ColumnLayout {
11
- spacing: 20
11
+ spacing: 4
12
12
Setting {
13
13
id: websiteLink
14
14
Layout .fillWidth : true
@@ -20,6 +20,7 @@ ColumnLayout {
20
20
}
21
21
onClicked: loadedItem .clicked ()
22
22
}
23
+ Separator { Layout .fillWidth : true }
23
24
Setting {
24
25
id: sourceLink
25
26
Layout .fillWidth : true
@@ -31,6 +32,7 @@ ColumnLayout {
31
32
}
32
33
onClicked: loadedItem .clicked ()
33
34
}
35
+ Separator { Layout .fillWidth : true }
34
36
Setting {
35
37
id: licenseLink
36
38
Layout .fillWidth : true
@@ -42,6 +44,7 @@ ColumnLayout {
42
44
}
43
45
onClicked: loadedItem .clicked ()
44
46
}
47
+ Separator { Layout .fillWidth : true }
45
48
Setting {
46
49
id: versionLink
47
50
Layout .fillWidth : true
@@ -56,6 +59,7 @@ ColumnLayout {
56
59
}
57
60
onClicked: loadedItem .clicked ()
58
61
}
62
+ Separator { Layout .fillWidth : true }
59
63
Setting {
60
64
id: gotoDeveloper
61
65
Layout .fillWidth : true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import QtQuick.Layouts 1.15
8
8
import "../controls"
9
9
10
10
ColumnLayout {
11
- spacing: 20
11
+ spacing: 4
12
12
Setting {
13
13
Layout .fillWidth : true
14
14
header: qsTr (" Enable listening" )
@@ -22,6 +22,7 @@ ColumnLayout {
22
22
loadedItem .toggled ()
23
23
}
24
24
}
25
+ Separator { Layout .fillWidth : true }
25
26
Setting {
26
27
Layout .fillWidth : true
27
28
header: qsTr (" Map port using UPnP" )
@@ -34,6 +35,7 @@ ColumnLayout {
34
35
loadedItem .toggled ()
35
36
}
36
37
}
38
+ Separator { Layout .fillWidth : true }
37
39
Setting {
38
40
Layout .fillWidth : true
39
41
header: qsTr (" Map port using NAT-PMP" )
@@ -46,6 +48,7 @@ ColumnLayout {
46
48
loadedItem .toggled ()
47
49
}
48
50
}
51
+ Separator { Layout .fillWidth : true }
49
52
Setting {
50
53
Layout .fillWidth : true
51
54
header: qsTr (" Enable RPC server" )
@@ -58,6 +61,7 @@ ColumnLayout {
58
61
loadedItem .toggled ()
59
62
}
60
63
}
64
+ Separator { Layout .fillWidth : true }
61
65
Setting {
62
66
id: gotoProxy
63
67
last: true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import QtQuick.Layouts 1.15
8
8
import "../controls"
9
9
10
10
ColumnLayout {
11
- spacing: 20
11
+ spacing: 4
12
12
Setting {
13
13
id: devDocsLink
14
14
Layout .fillWidth : true
@@ -22,6 +22,7 @@ ColumnLayout {
22
22
}
23
23
onClicked: loadedItem .clicked ()
24
24
}
25
+ Separator { Layout .fillWidth : true }
25
26
Setting {
26
27
id: dbcacheSetting
27
28
Layout .fillWidth : true
@@ -33,6 +34,7 @@ ColumnLayout {
33
34
}
34
35
onClicked: loadedItem .forceActiveFocus ()
35
36
}
37
+ Separator { Layout .fillWidth : true }
36
38
Setting {
37
39
id: parSetting
38
40
Layout .fillWidth : true
@@ -44,6 +46,7 @@ ColumnLayout {
44
46
}
45
47
onClicked: loadedItem .forceActiveFocus ()
46
48
}
49
+ Separator { Layout .fillWidth : true }
47
50
Setting {
48
51
Layout .fillWidth : true
49
52
header: qsTr (" Dark Mode" )
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+ import "../controls"
8
+
9
+ Rectangle {
10
+ height: 1
11
+ color: Theme .color .neutral5
12
+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import QtQuick.Layouts 1.15
8
8
import "../controls"
9
9
10
10
ColumnLayout {
11
- spacing: 20
11
+ spacing: 4
12
12
Setting {
13
13
Layout .fillWidth : true
14
14
header: qsTr (" Store recent blocks only" )
@@ -28,6 +28,7 @@ ColumnLayout {
28
28
loadedItem .toggled ()
29
29
}
30
30
}
31
+ Separator { Layout .fillWidth : true }
31
32
Setting {
32
33
id: pruneTargetSetting
33
34
Layout .fillWidth : true
Original file line number Diff line number Diff line change @@ -62,36 +62,24 @@ AbstractButton {
62
62
}
63
63
}
64
64
65
- contentItem: ColumnLayout {
66
- spacing: 20
67
- width: parent .width
68
- RowLayout {
69
- Header {
70
- Layout .fillWidth : true
71
- center: false
72
- header: root .header
73
- headerSize: 18
74
- headerColor: root .stateColor
75
- description: root .description
76
- descriptionSize: 15
77
- descriptionMargin: 0
78
- }
79
- Loader {
80
- id: action_loader
81
- active: true
82
- visible: active
83
- sourceComponent: root .actionItem
84
- }
65
+ contentItem: RowLayout {
66
+ Header {
67
+ Layout .topMargin : 14
68
+ Layout .bottomMargin : 14
69
+ Layout .fillWidth : true
70
+ center: false
71
+ header: root .header
72
+ headerSize: 18
73
+ headerColor: root .stateColor
74
+ description: root .description
75
+ descriptionSize: 15
76
+ descriptionMargin: 0
85
77
}
86
78
Loader {
87
- Layout .fillWidth : true
88
- Layout .columnSpan : 2
89
- active: ! last
79
+ id: action_loader
80
+ active: true
90
81
visible: active
91
- sourceComponent: Rectangle {
92
- height: 1
93
- color: Theme .color .neutral5
94
- }
82
+ sourceComponent: root .actionItem
95
83
}
96
84
}
97
85
}
Original file line number Diff line number Diff line change 34
34
id: navbar
35
35
}
36
36
ColumnLayout {
37
- spacing: 20
37
+ spacing: 4
38
38
width: Math .min (parent .width , 450 )
39
39
anchors .horizontalCenter : parent .horizontalCenter
40
40
Setting {
46
46
}
47
47
onClicked: loadedItem .toggled ()
48
48
}
49
+ Separator { Layout .fillWidth : true }
49
50
Setting {
50
51
id: gotoAbout
51
52
Layout .fillWidth : true
58
59
}
59
60
onClicked: loadedItem .clicked ()
60
61
}
62
+ Separator { Layout .fillWidth : true }
61
63
Setting {
62
64
id: gotoStorage
63
65
Layout .fillWidth : true
70
72
}
71
73
onClicked: loadedItem .clicked ()
72
74
}
75
+ Separator { Layout .fillWidth : true }
73
76
Setting {
74
77
id: gotoConnection
75
78
Layout .fillWidth : true
You can’t perform that action at this time.
0 commit comments