mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
The Block Clock #220
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!220
Loading…
Reference in a new issue
No description provided.
Delete branch "the-block-clock"
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 is a continuation of #148. The goal of this PR is to get the working features from #148 merged in using a QQuickPainterItem implementation of the dial instead of the javascript canvas. Connection state as well as the animating icon will be implemented in a later PR. Refactoring and clean up from the removal of the Canvas code still remains.
Update from 90469cb to e9b5dd:
Update branch from e9b5ddd to 96e47f8:
Update from 96e47f8 to 63792bf:
Update branch from 37b6257 to 8515fdf:
I noticed that these changes require the QtGraphicalEffects module (qml-module-graphicaleffects ubuntu package). I'll likely have to update the depends to include that module or change how the icon is forced into a specific color. Looking for an opinion one way or the other.
This line causes an abort during sync. Need to root cause and fix before merge.
Ok, I think i see it. During sync there are no blocks in the list so erase call in that range is invalid.
concept ack
Let's squash some of the history to have a clean commit record, but also I'm seeing some slight misalignment with the design file.
Below, the more visible layer is the design file, and below that is this PR on signet (hence diff block heights). Looks like the block height, the words "Blocktime" and peers indicator should be a bit higher up. Also fine with leaving this fixup for a follow-up!
Update branch from 8ecfae6 to 76a504e:
Update branch from 76a504e to 2e5a0d8:
Update. Remove a missed trailing whitespace
Update from 3fd696d to 33eb4af:
Almost there, just one change needed.
Additionally, i'd structure the commits something similar to this: https://github.com/jarolrod/gui-qml/tree/block-clock-review
But not necessary.
Per developer notes
Why should this be a control, and the block clock dial a component?
This item can take focus and accept input. The dial just renders the blocks.
Thanks, will fix this.
Actually not really convinced of this. Can see it living in components and making sense too
Really liked how you structured the commits in that branch. Going to use that.
Update branch to
6701ad2:ACK
6701ad2438This works, with improvements to be made in follow-ups
could add, since the paused state is implemented
I'd prefer all caps short names for states. in the codebase like, can be changed afterwards
I think this could be simplified into:
in a follow-up all of these colors should be defined in our theme.qml, because the colors would actually be slightly different when on dark or light mode. We'll circle back with @GBKS about these values.
does this need to be calculated each time the paintBlocks function is called, or can it be cached when the object is constructed?
can this be initialized outside of the loop, then have its properties updated?
This function is pretty confusing in general, we'll heavily change this in follow-ups
should probably do an early test on new_progress to make sure it's a valid value
starting from 1, isn't it skipping the first value in the list?
but
currentTimewas set in milliseconds in line 33, now we're doing math with seconds values?not sure why we're removing the first element here; but in follow-ups its better if this is a queue, instead of a vector that we manually remove elements from