trezor-firmware
trezor-firmware copied to clipboard
Rust UI: device setup
Part of #2298. Master diff: https://satoshilabs.gitlab.io/-/trezor/trezor-firmware/-/jobs/2716418986/artifacts/master_diff/index.html
TODO:
- [x] fix spacing in the success dialog
- [ ] ~~add f"Write down these {len(share_words)} words in the exact order:" dialog, teach tests to detect UI2~~
Pics:

what are these about?
i'm guessing spacing?
Cardano tests seem completely broken
what are these about?
The text is 1px to one side due to different component used.
Cardano is broken because the last batch of Cardano changes started using a layout that's not implemented yet in UI2. The fixtures weren't updated when it was merged because it is a manual job in CI.

Fixed the cardano tests in ef218aa and improved the success/modal spacing in aa3481b.
Master diff: https://satoshilabs.gitlab.io/-/trezor/trezor-firmware/-/jobs/2728590011/artifacts/master_diff/index.html








what is missing for the recovery tests? we do have the keyboards.
Rebased to master. Recovery is mostly missing these:

I wanted to do it separately because we don't use Rust homescreens yet. This PR is still missing the correct checklist theme, working on it.
Checklist theme updated in 160c916 (UI diff)

The normal font is 18px tall but the bold one 16px. I wonder if it's better to use normal font for the current item as well. Otherwise this PR is ready.
What was suggested in previous post. Maybe @sime can help me?

@Hannsek can you tackle this?
@mmilata Is there any reason why we don't use 18px font on every row?
@Hannsek we only have following fonts on device:
- normal: TTHoves Regular 18px
- medium: TTHoves Medium 20px
- bold: TTHoves Bold 16px
- monospace: RobotMono Regular 20px
It's not easy to add more due to flash memory constraints.
@mmilata Can we do something like this? To make not-current actions less visible…

~Sure:~

Sorry, used the bold font by mistake in the previous comment

Added recovery layouts. Again I mostly copied the old design so feel free to request changes or point me to figma.
