-
Notifications
You must be signed in to change notification settings - Fork 51
Migrate to PageStacks #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0d7c1ab to
3788060
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 3788060
Nice job! Removing dependencies with ids outside a page was almost mandatory, this avoids unexpected crashes when things change outside the page and can't be noticed. We need to add a hook or a test that evaluates the existence of views we are moving to onNext: and warns if there are components that are not/ (or left un-) referenced.
| onBack: { | ||
| nodeSettingsView.pop() | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: as in other places in the same file...
| onBack: { | |
| nodeSettingsView.pop() | |
| } | |
| onBack: nodeSettingsView.pop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a note for the style guide
| onBack: { | ||
| nodeSettingsView.pop() | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above.
Introduces a custom PageStack control that is a StackView adapted for our use in terms of the custom animations we demand, and the ability to switch between vertical and horizontal push() and pop(). This can later be further extended for our use cases.
This should be encapsulated so it can be reasoned about independently and in a well defined location. Additionally, swap from SwipeView to PageStack.
Vertical PageStacks used to replace vertical SwipeViews.
3788060 to
c52566d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK c52566d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK c52566d
on Ubuntu 24.04.1 LTS
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: there are extra blank lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK c52566d Works as expected on WSL Ubuntu 22.04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK c52566d
edc44e1 qml: Swap existing SwipeViews for PageStack (jarolrod) 825b883 qml: Swap existing StackViews for PageStack (jarolrod) 9c02a20 qml: declare OnboardingWizard file, reintroduce as PageStack (jarolrod) 51b1273 qml: Introduce PageStack control (jarolrod) Pull request description: After fixing our sins in bitcoin-core/gui-qml#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](bitcoin-core/gui-qml#422) we want. Closes bitcoin-core/gui-qml#422 Closes bitcoin-core/gui-qml#219 []() ACKs for top commit: pablomartin4btc: re-ACK edc44e1 MarnixCroes: tACK edc44e1 D33r-Gee: tACK [edc44e1](bitcoin-core/gui-qml@edc44e1) Works as expected on WSL Ubuntu 22.04 johnny9: ACK edc44e1 Tree-SHA512: f9a025944db24a46e1f78f4ad8a9b9aca4e1f3ff4dd5927eebfa2a7fb28ed390a17da79e23c6248c3c0e82b361ff1b2dedbf4df9df2a1d0677b05bacb7763bcb
edc44e1ef1becfb7ee753bd8dd8b5663d39ecf41 qml: Swap existing SwipeViews for PageStack (jarolrod) 825b883269ae3f05a59977010c81af6ecad8f4e8 qml: Swap existing StackViews for PageStack (jarolrod) 9c02a20ba1b13e4874be5009077e6513db0790db qml: declare OnboardingWizard file, reintroduce as PageStack (jarolrod) 51b1273ba151ce7ac2eb00a94b4e3dc7528c3e17 qml: Introduce PageStack control (jarolrod) Pull request description: After fixing our sins in bitcoin-core/gui-qml#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](bitcoin-core/gui-qml#422) we want. Closes bitcoin-core/gui-qml#422 Closes bitcoin-core/gui-qml#219 []() ACKs for top commit: pablomartin4btc: re-ACK edc44e1ef1becfb7ee753bd8dd8b5663d39ecf41 MarnixCroes: tACK edc44e1ef1becfb7ee753bd8dd8b5663d39ecf41 D33r-Gee: tACK [edc44e1](bitcoin-core/gui-qml@edc44e1) Works as expected on WSL Ubuntu 22.04 johnny9: ACK edc44e1ef1becfb7ee753bd8dd8b5663d39ecf41 Tree-SHA512: f9a025944db24a46e1f78f4ad8a9b9aca4e1f3ff4dd5927eebfa2a7fb28ed390a17da79e23c6248c3c0e82b361ff1b2dedbf4df9df2a1d0677b05bacb7763bcb
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
verticalused to declare if we want vertical or horizontal animations, and additionally implements the custom animation we want.Closes #422
Closes #219