mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:12:38 +00:00
Onboarding views #124
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!124
Loading…
Reference in a new issue
No description provided.
Delete branch "onboarding-views"
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 PR adds the views for the onboarding wizard.
Aim:
The main aim of this PR is to introduce the onboarding views and the interactions in it.
Details:
Concept ACK. This PR definitely requires designers' reviewing :)
Adjust layouts according to https://bitcoindesign.github.io/Bitcoin-Core-App/layout/?
The centered text in the onboarding sequence isnt ideal - left justified is better. Experimenting with where the text breaks to avoid dangling words such as "a" "the" "in" etc is also better responsive design/text flow.
I'm not sure what I am doing wrong here trying to test?
Installed
qmlbut still only seeingbitcoin-qt(no qml binary). Running it still results in the old setup.@Rspigler
This might be a basic suggestion, but have you installed the QML-specific dependencies?
I am mentioning this because I recently made a similar mistake :)
In case you have installed the dependencies, it would be best if you could run:
And share the resultant log part relevant to Qt and QML.
The relevant part should look something like this:
Yes, the binary has the same name.
On Sat, 4 Jun 2022 at 00:44, Robert Spigler @.***>
wrote:
--
--
Hennadii Stepanov
Ah ok thank you both. I was looking for the dependencies here: https://github.com/bitcoin-core/gui-qml/blob/main/doc/dependencies.md (which had no change from bitcoin/bitcoin). Was wondering where the documentation was. Will update in a moment
Notes:
On the 'Info' Page (About; Bitcoin Core is an Open Source Project...):
Strengthen Bitcoin:
Block Clock:
Storage Location:
Storage:
✔️
Connection:
Other:
Selecting 'Back' is confusing when in a page's Detailed Settings. For example, there is Page 1, Page 2, Page 2 Detailed Settings. Selecting 'Done' returns to Page 2, but selecting 'Back' returns to Page 1. Perhaps for the Detailed Settings pages there shouldn't be a 'Back' button, only 'Done'?
Possible other config options to add:
Assumevalid
Indexes:
Dbcache
Address/change type
I'm also interested in how we will set up the Networks page:
cjdns/i2p/tor/ and/or clear (also incoming/outgoing).
Thank you very much, @Rspigler, for your thorough review and analysis of the PR.
Let me try to address your observations as best as I can.
That is due to improper layouting. I am working on fixing the layouts according to design guidelines, which will fix this issue.
Yes, that's a known limitation. I displayed them as plain text for this PR's initial version to finish up a working prototype of onboarding views. This is intended to fix in the next update of this PR.
Yes. Though this is out of the scope of this PR, this is something we intend to accomplish.
Thanks for pointing that out! This was something I missed while writing the description.
We indeed to keep this page the same as displayed through this PR. But it seems like you have some nice ideas to improve this page for the Desktop. If so, I would love to hear them.
I want to think more about this. Would you please share your reasoning for doing this change?
This is something I would definitely agree with. I myself got confused a lot of times while testing this PR.
an anecdote of confusion:
I got to a detailed setting page, pressed the back button, pressed the next, and could not understand why the done button was showing up instead of next.
Let us give a thought about it.
Thank you very much again for your valuable feedback and thorough analysis. Your review has given me a lot of nice things to work upon :)
Hi @shaavan, thank you for your response!
The current page has 3 settings:
This works perfectly (IMO) for a cellphone app. However, for the typical binary download or self-compile on a laptop/desktop machine, the first two won't be selected.
Bitcoin/bitcoin has documentation on how to manage traffic for Bitcoin Core: (https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-traffic.md). These are
maxuploadtarget, (disable)listen,maxconnections, andblocksonly. I think the most common options are enable/disable listening and enable blocksonly; these should be the connections settings for the desktop application. The other settings can be in Detailed Settings.Listening and Blocks Only already discussed above. For Networks, I think this is also a very important setting, for both privacy reasons and also anti-network partition strength. Currently, network settings can be very difficult to set up for beginners.
I can see something like this:
For example, doing nothing and being behind a firewall would have
Clearnet OutboundEnabled, and everything elseDisabled. Setting up Listening would enableClearnet Inbound, but only if the firewall allowed it, otherwise there should be a link to port forwarding.Not all combinations are able to exist, but I think it is a nice way to visualize. (Would also include i2p and cjdns)
As I already mentioned during the recent design call, it would be nice to consider the current content of the views as mere placeholders in this PR context, and focus on workflows, transitions, layouts etc.
Concept ACK, still reviewing but wanted to talk about the
PageIndicatorwhich is still at the bottom. It was forgotten in #106 to remove thePageIndicatorat the bottom. It is no longer to be used there as per discussions had on the design calls and per the design specifications. The screenshots in the PR description crop this out for some reason.On PR branch, PageIndicator at bottom

You should just delete the footer of the
Wizardcontrol in a new commit, I have done this here: https://github.com/jarolrod/gui-qml/tree/remove-pageindicator-wizardFeel free to cherry-pick this commit and then rebase the commits included in this PR on top of that.
@Rspigler Thanks for your interest in the project! Right now we're at a stage where we're figuring out processes and in getting an initial app together. There are some elements that will appear out of place, but all of this will be sorted out fairly soon!
Updated from e8a6a8db93dd6c3caf5840139770ecd34c2dfeec to fc6f6ea8d940626e1edf35658a5322370d52dc07 (pr124.01 → pr124.02, diff)
Addressed @hebasto, @jarolrod, @Rspigler, and @RandyMcMillan comments
Changes:
PageIndicatorbar.Information.qmlto allow text to be editable.tACK
github.com/bitcoin-core/gui-qml@fc6f6ea8d9Only think I noticed was that there is still weird behavior between detailed settings/back/done.
Updated from fc6f6ea8d940626e1edf35658a5322370d52dc07 to f5a112727405e134796b0f7899c6a1fa57d016fa (pr124.02 -> pr124.03, diff)
Addressed @Rspigler comment
Changes:
< BackButton for sub-pages.Visual Difference:
@shaavan
Maybe rebase this PR on top of the merged #33?
Updated from f5a112727405e134796b0f7899c6a1fa57d016fa to 5502d02954323f5f1c199121adbb3be154342454 (pr124.03 -> pr124.04, diff)
Addressed @hebasto suggestion
Changes:
propertytoInfomation.qmlto use icon instead of descriptive text. Clicking on the button opens the (optional) link.Visual differences:
Updated from 5502d02954323f5f1c199121adbb3be154342454..a655954d509653f2668546cdb403f2eea0804f2d (pr124.04 -> pr124.05, diff)
Changes:
Visual Changes:
tACK a655954d509653f2668546cdb403f2eea0804f2d
Recent changes are implemented
@shaavan Please rebase this PR to be able to download Apple M1 binaries for testing.
Updated from a655954d509653f2668546cdb403f2eea0804f2d to 11dcbfdee5a174adff60444627c9dd8244d0bc20 (pr124.05 -> pr124.06, diff)
Addressed @hebasto comment.
Changes:
I've added macOS arm64 binary download link to the PR description.
Did a test using the windows binary today on my pc. I placed Christophs designs next to the actual screenshots to do the analysis.

Hope this is helpful!
@mouxdesign how did you take the screenshots? To me, the font sizes in the binary are accurate compared to the designs. Was there maybe some scaling going on when taking the screenshot and putting it in Figma?
Adding in here:
screen-capture.webm
@mouxdesign this looks quite different. Do you maybe have some operating systems for larger fonts or anything like that enabled?
I apologize for not testing carefully enough. I have all the same issues that @mouxdesign has as well.
I am on Fedora 35
My guess is that declaring font sizes via
pixelSizeinstead ofpointSizewill fix this.ping @shaavan
Updated from 11dcbfdee5a174adff60444627c9dd8244d0bc20 to 1c64135a68af45455685f6f00904a20875c56e6b (pr124.06 -> pr124.07, diff)
Addressed @GBKS suggestion.
Changes:
pointSizewithpixelSize.There is a noticeable visual change when using the pixelSize.
Screenshot:
The design looks much cleaner now after the update.
There are a few more suggestions I would like to address before this PR gets merged. However, currently, I am pushing this single change so that the reviewers can test locally if they can observe the behavior getting corrected on their machines.
A gentle ping @mouxdesign and @Rspigler.
Thanks, @GBKS, for your suggestions, and thanks, @hebasto, for the ping!
Super! Great work @shaavan. Could you send the link to binary again? I'll be happy to test it again. Will be amazing to see the gui in the way that it was designed.
Thanks, @mouxdesign! The binary link in the PR's description shall update to the latest version as soon as the CI completes.
Here's the link: https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/124
However, you should wait for checks to complete before downloading using this link.
@hebasto
I am not sure why some CI checks failed. Would you please help in understanding the reason for it? Thanks!
@shaavan
Suggesting to rebase.
Updated from 1c64135a68af45455685f6f00904a20875c56e6b to 802e6826fca6536fa91ad25a96f9cb33f31f6506 (pr124.07 -> pr124.08, diff)
Addressed @hebasto suggestion.
@mouxdesign @GBKS
Since all of the CI tests are green, binaries for testing are available for downloading via the links at the bottom of the PR description as usual 🐅
Updated from 802e6826fca6536fa91ad25a96f9cb33f31f6506 to
5118be447a(pr124.08 -> pr124.09, diff)Addessed @GBKS suggestions.
Changes:
Wizard.qmlto each page separately.Settings.qmlandInformation.qml.< Backbutton on them.600->450in Connection Settings and Storage Settings page.655pixels.Some Minor Changes:
< Backbutton according to the Design.Here are the screenshots for all the visual differences after this update:
First of all, thank you very much, @GBKS, for all your valuable suggestions. All these suggestions helped improve the PR a lot.
I would also like to address the suggestion I did not include in this PR.
Since I wanted to be sure of the correct method of importing svg, and png format in resources, I decided to keep this change on hold.
Again thank you very much for all your suggestions!
A friendly ping to my fellow contributors: @hebasto @jarolrod @mouxdesign @Rspigler @RandyMcMillan
Will test shortly
tACK commit
5118be447aI can confirm that the text size changes from pr124.06->pr124.07 has taken place
I can confirm the visual changes mentioned in comment https://github.com/bitcoin-core/gui-qml/pull/124#issuecomment-1186277484
All tests pass
Great update, @shaavan.
Just tested, and noticed a few more things we can address, whether in this PR or elsewhere:
Was also wondering if we need more, and/or more visual, hover/selected states. When hovering a web link on "About", for example, I see the text select cursor. Should probably be the hand cursor, and we could change the text color (to orange) for clearer feedback.
The descriptions here should not be translatable.
you could make this it's own commit:
qml: customizable wrap mode in Header control
in
8763690db1, you didn't update the PR description to state that we are now usingpixelSizeinstead ofpointSizewhen you updated the PR. This is a pretty important change to document. I would suggest extracting out this part into it's own commit (adding a nice description to document the historical reason):qml: use font pixelSize instead of pointSize
As the description of
a17b84ec67states, "This is an object similar to Setting.qml". I think that instead of having this control we can just refactorSetting.qmlto load the desired component in place of the currently hardcoded switch. This adds flexibility to the setting control to fit in with all the use cases required of it within options handling without introducing a new component here, and other components when a new component is desired in the switch's position.The QML TextEdit component is not an appropriate component for this. Per it's description: "Displays multiple lines of editable formatted text." The links we want to display are definitely not editable text.
We should just use Text. That way we don't need to hack around
TextEditby setting it asreadOnly.It's not clear to me why we are hardcoding a
rightMarginvalue of12here. This doesn't seem like the correct way to do this, what is the design spec that inspired this change?you could make this it's own commit, also maybe switch the logic from defining
rightaligntocenter?:qml: make text boldness and alignment customizable in TextButton control
in
79e959c12fa better title is
qml: remove page indicator and navbar from Wizard ControlACK
5118be447aACK
github.com/bitcoin-core/gui-qml@5118be447aWill pick up feedback in follow-ups
Observing in terminal:
@jarolrod
Great! Let me know which one you pick first, and I shall get doing the rest.
@hebasto
https://github.com/bitcoin-core/gui-qml/pull/124#issuecomment-1197117450
I didn't observe this message while building/running the views.
It would greatly help if you could give details on precisely when you observed this statement: when starting the GUI or after clicking on some action in the views.
It seems like a Wayland-specific issue.
So is this something we can work on fixing, or is it a bug intrinsic to Wayland?
IDK :)
The
TextEditComponent is needed for the options likeStorage LimitorConnection Limit, which required the values to be editable.Getting rid of the
readonlyproperty would mean creating separate loaders for editable and non-editable text.I would like to hear your take on this and would be glad to know a more efficient way to deal with this problem.
The
rightMarginwas explicitly set to correctly position theOptionsSwitch, to be precisely above the right end of the divider line.I experimented with other conventional methods of aligning elements using
LayoutsandAnchorsbefore going with hardcoded margin. Still, none of them worked to position the Switch over the divider properly.This would be the ideal way to move forward, and this was something I tried to do while beginning to write this PR.
However, the crucial problem I faced while going with this idea at the beginning was that QML is a declarative language and hence doesn't support conditional statements that are more complicated than a ternary operator.
So it was quite hard to figure out a way to make
Settings.qmlswitch the type of description based on the option type without using conditional statements. So I went forward by creatingInformation.qmlfrom scratch and, one by one, incorporated changes to work with all the option types.But now, since the
Information.qmlhas been laid out, and almost all the permutations of various options have been accounted for, we can think of ways to merge these two files effectively.I am afraid I did not understand the change you are referring to. Would you please elaborate on this point?
Thanks!
Addressed in #140
Thanks!
I agree with your suggestion regarding splitting the commits and rewriting the commit message. And hence I tried to incorporate them.
However, after merging this PR, I can't figure out a way to do them.
Could you please suggest a way to incorporate this and the following two suggestions? Thanks!
A gentle ping @jarolrod, @hebasto
Just downloaded the binary and I'm happy to say that it looks great! I don't have the font sizing issues I had the first time. In the image below row 2, you can see the present version, row 1 was the previous version. Well done @shaavan and @GBKS for the suggested solution.

@mouxdesign Do you mean column 2/3? The images below row 2 still show many errors
I tested this again, and my system shows column 2
@Rspigler I believe column 2 is the newer and correct version - so should be all good. Is that right, @mouxdesign?
100% correct as @GBKS mentioned the second column is the newer version. I see in my initial message I mentioned a row, so understand which the confusion might have come from. The third column are Christoph's original designs.