File tree Expand file tree Collapse file tree 1 file changed +53
-67
lines changed Expand file tree Collapse file tree 1 file changed +53
-67
lines changed Original file line number Diff line number Diff line change @@ -8,77 +8,63 @@ import QtQuick.Layouts 1.15
88import "../../controls"
99import "../../components"
1010
11- Page {
12- id: root
13- signal back
11+ InformationPage {
1412 property bool onboarding: false
15- background: null
16- PageStack {
17- id: stack
18- anchors .fill : parent
19- initialItem: aboutPage
20- Component {
21- id: aboutPage
22- InformationPage {
23- id: about_settings
24- bannerActive: false
25- bannerMargin: 0
26- bold: true
27- showHeader: root .onboarding
28- headerText: qsTr (" About" )
29- headerMargin: 0
30- description: qsTr (" Bitcoin Core is an open source project.\n If you find it useful, please contribute.\n\n This is experimental software." )
31- descriptionMargin: 20
32- detailActive: true
33- detailItem: AboutOptions {
34- onNext: stack .push (developerSettings)
35- }
36-
37- states: [
38- State {
39- when: root .onboarding
40- PropertyChanges {
41- target: about_settings
42- navLeftDetail: backButton
43- navMiddleDetail: null
44- }
45- },
46- State {
47- when: ! root .onboarding
48- PropertyChanges {
49- target: about_settings
50- navLeftDetail: backButton
51- navMiddleDetail: header
52- }
53- }
54- ]
13+ id: root
14+ bannerActive: false
15+ bannerMargin: 0
16+ bold: true
17+ showHeader: root .onboarding
18+ headerText: qsTr (" About" )
19+ headerMargin: 0
20+ description: qsTr (" Bitcoin Core is an open source project.\n If you find it useful, please contribute.\n\n This is experimental software." )
21+ descriptionMargin: 20
22+ detailActive: true
23+ detailItem: AboutOptions {
24+ onNext: root .StackView .view .push (developerSettings)
25+ }
5526
56- Component {
57- id: backButton
58- NavButton {
59- iconSource: " image://images/caret-left"
60- text: qsTr (" Back" )
61- onClicked: root .back ()
62- }
63- }
64- Component {
65- id: header
66- Header {
67- headerBold: true
68- headerSize: 18
69- header: qsTr (" About" )
70- }
71- }
27+ states: [
28+ State {
29+ when: root .onboarding
30+ PropertyChanges {
31+ target: root
32+ navLeftDetail: backButton
33+ navMiddleDetail: null
7234 }
73- }
74- Component {
75- id: developerSettings
76- SettingsDeveloper {
77- onboarding: root .onboarding
78- onBack: stack .pop ()
35+ },
36+ State {
37+ when: ! root .onboarding
38+ PropertyChanges {
39+ target: root
40+ navLeftDetail: backButton
41+ navMiddleDetail: header
7942 }
8043 }
81- }
82- }
44+ ]
8345
46+ Component {
47+ id: backButton
48+ NavButton {
49+ iconSource: " image://images/caret-left"
50+ text: qsTr (" Back" )
51+ onClicked: root .back ()
52+ }
53+ }
54+ Component {
55+ id: header
56+ Header {
57+ headerBold: true
58+ headerSize: 18
59+ header: qsTr (" About" )
60+ }
61+ }
8462
63+ Component {
64+ id: developerSettings
65+ SettingsDeveloper {
66+ onboarding: root .onboarding
67+ onBack: root .StackView .view .pop ()
68+ }
69+ }
70+ }
You can’t perform that action at this time.
0 commit comments