@@ -10,48 +10,57 @@ import "../controls"
10
10
11
11
ApplicationWindow {
12
12
id: appWindow
13
- title: " Bitcoin Core TnG "
14
- minimumWidth: 750
15
- minimumHeight: 450
13
+ title: " Bitcoin Core App "
14
+ minimumWidth: 800
15
+ minimumHeight: 700
16
16
color: Theme .color .background
17
17
visible: true
18
18
19
- Component .onCompleted : nodeModel .startNodeInitializionThread ();
19
+ StackView {
20
+ id: main
21
+ initialItem: onboardingWizard
22
+ anchors .fill : parent
23
+ }
20
24
21
- ColumnLayout {
22
- anchors .centerIn : parent
23
- spacing: 15
24
- width: 400
25
- Image {
26
- Layout .alignment : Qt .AlignCenter
27
- source: " image://images/app"
28
- sourceSize .width : 64
29
- sourceSize .height : 64
30
- }
31
- Header {
32
- Layout .fillWidth : true
33
- bold: true
34
- header: qsTr (" Bitcoin Core App" )
35
- headerSize: 36
36
- headerMargin: 30
37
- description: qsTr (" Be part of the Bitcoin network." )
38
- descriptionSize: 24
39
- descriptionMargin: 0
40
- subtext: qsTr (" 100% open-source & open-design" )
41
- subtextMargin: 25
42
- }
43
- BlockCounter {
44
- Layout .alignment : Qt .AlignCenter
45
- blockHeight: nodeModel .blockTipHeight
46
- }
47
- ProgressIndicator {
48
- id: indicator
49
- Layout .fillWidth : true
50
- progress: nodeModel .verificationProgress
51
- }
52
- ConnectionOptions {
53
- Layout .preferredWidth : 400
54
- focus: true
55
- }
25
+ Wizard {
26
+ id: onboardingWizard
27
+ anchors .fill : parent
28
+ views: [
29
+ " onboarding/onboarding01.qml" ,
30
+ " onboarding/onboarding02.qml" ,
31
+ " onboarding/onboarding03.qml" ,
32
+ " onboarding/onboarding04.qml" ,
33
+ " onboarding/onboarding05.qml" ,
34
+ " onboarding/onboarding06.qml" ,
35
+ ]
36
+ onFinishedChanged: main .push (node)
37
+ }
38
+ Component {
39
+ id: node
40
+ Page {
41
+ anchors .fill : parent
42
+ background: null
43
+ ColumnLayout {
44
+ width: 600
45
+ spacing: 0
46
+ anchors .centerIn : parent
47
+ Component .onCompleted : nodeModel .startNodeInitializionThread ();
48
+ Image {
49
+ Layout .alignment : Qt .AlignCenter
50
+ source: " image://images/app"
51
+ sourceSize .width : 64
52
+ sourceSize .height : 64
53
+ }
54
+ BlockCounter {
55
+ Layout .alignment : Qt .AlignCenter
56
+ blockHeight: nodeModel .blockTipHeight
57
+ }
58
+ ProgressIndicator {
59
+ width: 200
60
+ Layout .alignment : Qt .AlignCenter
61
+ progress: nodeModel .verificationProgress
62
+ }
63
+ }
64
+ }
56
65
}
57
66
}
0 commit comments