-
-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core/ui): optimize brightness settings for Mercury #3991
Conversation
1ce7237
to
3f89663
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some preliminary comments, so far looking good!
If you want to learn more about testing infrastructure feel free to write a device test for this feature.
core/embed/rust/src/ui/model_mercury/component/set_brightness.rs
Outdated
Show resolved
Hide resolved
@ibz please post here some screenshots from the flow. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise this looks good, however the appearance is different from figma. Perhaps it changed in the meanwhile? It has orange heading while the finished flows have green so maybe it's still not final?
core/translations/en.json
Outdated
@@ -81,7 +81,7 @@ | |||
"bitcoin__unverified_external_inputs": "The transaction contains unverified external inputs.", | |||
"bitcoin__valid_signature": "The signature is valid.", | |||
"bitcoin__voting_rights": "Voting rights to:", | |||
"brightness__title": "Set brightness", | |||
"brightness__title": "Change display brightness", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@obrusvit do you know whether we need to do anything when an english string changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. In this case, it seems unnecessary. WDYT @Hannsek
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is not a big pain, please change it. 🙏🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need new translations, for sure. But we are adding new strings anyway, so I think it's no big deal.
Don't know if you know but you can take screenshots by pressing |
I see, indeed Figma changed since last time I looked. I remember @Hannsek said I should just use slider instead of the +/- buttons (which were in Figma), but there was no design for that at the time. Now there is, but with a different kind of slider. I can wait until this stabilizes (green heading?)... |
New screenshots here @Hannsek : |
Thanks, looks better now. But please make sure to have the right copy on right places and the right dimensions according to the design. |
7bcd42d
to
06b3425
Compare
06b3425
to
5acbac7
Compare
core/embed/rust/src/ui/model_mercury/component/number_input_slider.rs
Outdated
Show resolved
Hide resolved
5acbac7
to
3786874
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost ready to merge 👍
core/embed/rust/src/ui/model_mercury/component/number_input_slider.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash your fixups and then merge if CI passes.
cf5be6f
to
1e6439f
Compare
Monero test failed. Ran it separately and it passed. Merging... |
Fixes #3969, #3962.