mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:12:38 +00:00
qml: split background and indicator on option switch #169
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!169
Loading…
Reference in a new issue
No description provided.
Delete branch "option-switch"
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?
Alternative to bitcoin-core/gui-qml#161.
nit, it also animates the indicator.
Links for Windows and macOS build artifacts
ACK
c50e6bc3acConfirmed that this fixes the issue, and is a better approach than 161.
The indicator is indeed now animated but I like it. It's not clear wether we wanted some type of animation or not, what better animation than a free one? CC: @GBKS @mouxdesign
I prefer this PR's approach over #161, as this creates proper segregation between the switch's background and the indicator.
The added animation is clearly noticeable, and I like the smoothness it provides while toggling switch states. However, I would like to listen to the designers' take on it as well before giving my final ACK on this.
Though changing this value does not indicate visual difference, I think it is still better to make this change as this matches the value given in the design Figma file.
more than 10 makes no sense, right?
Yes, it doesn't, and I agree with that.
But I feel a little iffy about having the value inconsistent with the design file.
However, this is just a tiny nit and can be safely ignored if you want.
@GBKS thoughts?
In Figma, the small circle in the toggle is 20px tall, the big one is 28px tall. So the radii of 10px and 14px would be the minimum.
I sometimes set them to 500px or some other ridiculously high number because it doesn't matter in Figma if you're over the exact value. But if you want to be precise, then half the height is what it should be. Looks like for the smaller size, I simply kept the value of the larger one. 10px would be the precise number.