mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Introduce and use Onboardinginfo control #146
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!146
Loading…
Reference in a new issue
No description provided.
Delete branch "onboardinginfo-control"
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?
This introduces the
OnboardingInfocontrol which represents the contents of an onboarding page that displays an image, some body text, and the continue button. This type of onboarding page is thus categorized as in info page. This is a nice simplification for the onboarding views pages which display this type of info.Extensible now with a loader for when the current temp images are replaced with Lottie animations.
no visual difference, comparison between master and pr below for reference:
master
pr
Concept ACK
This PR provides a nice cleanup for information-based onboarding views pages. And I agree with the approach of PR.
I have some suggestions to help further clean up the intended files.
widthand anchoring of contents on the pages are the same for all the onboarding views. So they can be moved toOnboardingInfo.qmldescriptionMarginvalue can be changed from10->20, which is equal for pages 2 and 3. This will save up on a redundant declaration for this property.bannersource component, we can avoid declaring three properties for each usage of OnboardingInfo.a.
Layout.fillWidth = true-> Since we are explicitly providing thesourceSizewidthandheight, setting this property is redundant.b.
Layout.alignment-> Since the Loader already sets the alignment for thesourceComponent, defining this is also redundant.c.
Layout.topMargin-> We can instead set the margin of the Loader itself, using, say,bannerMarginand set it to the default value20property. This will make the usage of banner in OnboardingInfo less cumbersome.Here is the diff incorporating all the suggested changes. The onboarding views remain visually identical after applying the diff.
Diff:
Updated from d606f85 to
661d4d2changes:
implicitWidthwithin the control instead ofwidthACK
661d4d2a4a, tested on Ubuntu 22.04.