mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Contain oboarding information in a scroll view #194
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!194
Loading…
Reference in a new issue
No description provided.
Delete branch "option2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addresses https://github.com/bitcoin-core/gui-qml/issues/186
Suggesting to rebase to fix CI tasks.
Extra spaces
must be removed here to make
test/lint/lint-whitespace.pyhappy :)This is the better option at least when considering how it reacts to the gui resized within a tiling window manager (which doesn't respect the minimum sizes like compositing window managers)
In the below screenshows i tried to scroll all the way down to the bottom to be able to access the continue button, could only do so with this option (option2):
Have not yet tested on android.
Rebase from 19df4a5 to fd23e05:
Rebase?
Updated branch from fd23e05 to b8cf76
Needs rebase again.
Update from b8cf76c to 00f2a6a:
I think I prefer this option as well after playing with both. It is also easier to implement so that helps.
I just tested out the both options, the one here and the first one in #191. Is there any way to combine the two? Logic would be that below
minStickyHeight, the logic here applies where the button is just part of the content and scrolls along with it. And aboveminStickyHeight, the button is sticky at the bottom of the screen?And thank you for the effort of setting up both of these PRs.
https://github.com/bitcoin-core/gui-qml/pull/209 here is an attempt at combining option 1 and 2. I still need to work out some of the numbers to get the layout margins correct on both the "inside" and "outside" button but I set the minimum height to 300 pixels where it will switch from option1 to option2. Testing on Desktop for quicker iteration.
This one works the best with tiling window managers:

The other two options don't work well in split screen view, but this option works the best out of them, still not perfect though as shown by the screenshot below:
Ok I'll focus on getting this version corrected. Likely just have something off with the content height or the button anchor. I think this option is the safest due to the simplicity of it. The layouts get difficult for the other options at the extremes
Corrected the height calculations on mobile so the button hopefully doesn't overlap anymore.
I experimented with decreasing the minimum window size to 200 on my mac to simulate the event when the content on the screen is longer than the height of the application.
And while using the scroll, I was able to observe some stuttering motions. I observed the stuttering at both 120 fps and 60 fps.
Recording:
https://user-images.githubusercontent.com/85434418/209706612-da05d8c3-3f77-4d12-923d-3d24d9aa65f9.mov
As https://github.com/bitcoin-core/gui-qml/pull/191 has been closed, I've updated this PR title.
ACK
d17e30961eI've tested on Android Tablet + Phone as well as on a tiling window manager. This works exactly as we'd want it to.
There's one issue with the contentHeight logic that doesn't have to be addressed as of now since it's really an edge case:
On a tiling window manager, if you shrink the window width so that the content needs to collapse and take up more vertical space, the contentHeight doesn't seem to be updated when the page's elements take up more vertical space due to the change in the width. Illustrated below, the continue button is barely clickable and not in view:
This doesn't really apply to Android as of yet, because android doesn't seem to respect width changes whatsoever; but it would apply when we update the app logic to work with width changes on android.