mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Introduce PeersIndicator component #127
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!127
Loading…
Reference in a new issue
No description provided.
Delete branch "220603-peers"
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?
The reference design: https://bitcoindesign.github.io/Bitcoin-Core-App/assets/images/block-clock-connection-states-big.png
Design features implementation:
Looking for designers' Concept (N)ACK, and developers' notes regarding QML code.
the design specifies spacing of 5 between each connection dot, and that each connection dot be 3x3, see: https://www.figma.com/file/GaCoOSNHB2yMB9ThiDtred/Bitcoin-Core-App?node-id=3288%3A70945
With these changes, it'll look a bit small in its current demo. But it should look fine when it's a part of the block clock.
Fixed circular dependency.
Thanks! Updated.
But now dots look like square pixels :)
cc @GBKS
@hebasto yes that is true, if we need to scale it, we can scale it from the current proportions. The orginal implementation looked a lot like the PageIndicator we had before.
Talking about scaling, we should scale down, rather up.
Concept ACK
Demo:
I have attached my notes for this PR.
Notes:
How about making it a readonly property? Should we permit other files to edit this property outside of this file?
this can change when there's configuration and options handling, it's set to this value by default
36e20da886Correct me if I'm wrong but I think it's safe to use
nodewithoutAddRef/ReleasebecauseDeleteNodeisn't called concurrently withCConnman::NotifyNumConnectionsChanged.b0b36d6668bcf2d14438b19d849de650951ac02f
This can be
Row? Then can dropwidthandheightbindings below.Otherwise below should bind
implicitWidthandimplicitHeight.Yes, it can. But using
Itemprovides better encapsulation and hiding implementation details. For example,PeersIndicator { padding: 42 }will fail in the current branch.Updated 88b99c9a543bc0527a30c1a5d1051fddd3511513 -> aad0ff4d01c3a6fc1100d9717a21c4bce866c159 (pr127.02 -> pr127.03, diff):
Thanks! Updated.
Do you mind elaborating? What change do you suggest?
That's my point, I think the correct code is fine. Initially, I wondered if some
AddRef/Releasewas needed.why lump this in here, isn't the following cleaner?
Updated aad0ff4d01c3a6fc1100d9717a21c4bce866c159 ->
179ca2370a(pr127.03 -> pr127.04, diff):Thanks! Updated.
concept ACK on node changes and QML changes. Node changes seem ready to open upstream
I guess there's no need for this line, just look at the path and name of the file
Perhaps every component with a one to one link to a design file should have a link for easy reference to the design spec?
replaced by https://github.com/bitcoin-core/gui-qml/pull/236
Closed in favour of #236.