You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c52566d qml: Swap existing SwipeViews for PageStack (jarolrod)
f0e5951 qml: Swap existing StackViews for PageStack (jarolrod)
7ba2f62 qml: declare OnboardingWizard file, reintroduce as PageStack (jarolrod)
d49b888 qml: Introduce PageStack control (jarolrod)
Pull request description:
After fixing our sins in #427, migrating to A StackView based GUI is quite simple.
Here we use a custom StackView control, PageStack, that has a property `vertical` used to declare if we want vertical or horizontal animations, and additionally implements the [custom animation](#422) we want.
Closes#422Closes#219
[]()
ACKs for top commit:
pablomartin4btc:
re-ACK c52566d
MarnixCroes:
tACK c52566d
D33r-Gee:
tACK [c52566d](c52566d) Works as expected on WSL Ubuntu 22.04
johnny9:
ACK c52566d
Tree-SHA512: f9a025944db24a46e1f78f4ad8a9b9aca4e1f3ff4dd5927eebfa2a7fb28ed390a17da79e23c6248c3c0e82b361ff1b2dedbf4df9df2a1d0677b05bacb7763bcb
Copy file name to clipboardExpand all lines: src/qml/pages/onboarding/OnboardingConnection.qml
+41-35Lines changed: 41 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -15,46 +15,52 @@ Page {
15
15
signal next
16
16
background:null
17
17
clip:true
18
-
SwipeView {
19
-
id:connections
18
+
PageStack {
19
+
id:connectionStack
20
20
anchors.fill: parent
21
-
interactive:false
22
-
orientation:Qt.Vertical
23
-
InformationPage {
24
-
navLeftDetail: NavButton {
25
-
iconSource:"image://images/caret-left"
26
-
text:qsTr("Back")
27
-
onClicked:root.back()
28
-
}
29
-
bannerItem: Image {
30
-
Layout.topMargin:20
31
-
Layout.alignment:Qt.AlignCenter
32
-
source:Theme.image.storage
33
-
sourceSize.width:200
34
-
sourceSize.height:200
35
-
}
36
-
bold:true
37
-
headerText:qsTr("Starting initial download")
38
-
headerMargin:30
39
-
description:qsTr("The application will connect to the Bitcoin network and start downloading and verifying transactions.\n\nThis may take several hours, or even days, based on your connection.")
40
-
descriptionMargin:10
41
-
detailActive:true
42
-
detailTopMargin:10
43
-
detailItem: RowLayout {
44
-
TextButton {
21
+
vertical:true
22
+
initialItem: onboardingConnection
23
+
Component {
24
+
id: onboardingConnection
25
+
InformationPage {
26
+
navLeftDetail: NavButton {
27
+
iconSource:"image://images/caret-left"
28
+
text:qsTr("Back")
29
+
onClicked:root.back()
30
+
}
31
+
bannerItem: Image {
32
+
Layout.topMargin:20
45
33
Layout.alignment:Qt.AlignCenter
46
-
text:qsTr("Connection settings")
47
-
onClicked:connections.incrementCurrentIndex()
34
+
source:Theme.image.storage
35
+
sourceSize.width:200
36
+
sourceSize.height:200
48
37
}
38
+
bold:true
39
+
headerText:qsTr("Starting initial download")
40
+
headerMargin:30
41
+
description:qsTr("The application will connect to the Bitcoin network and start downloading and verifying transactions.\n\nThis may take several hours, or even days, based on your connection.")
0 commit comments