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
core/ui: Improve semantics of layout functions #1731
Conversation
d8c556e
to
4bcab90
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.
@andrewkozlik please take a look at 9de567b and the resulting UI diff of
get_ownership_proof
9de567b LGTM. I haven't looked at the rest.
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.
Awesome! UI diff ACK.
Truncation options were removed. Subtitle distinct from description was removed. confirm_hex was replaced by confirm_blob. You should use confirm_blob when displaying data that is not human readable and can be broken at any character. Also it is now possible to pass bytes, which are automatically converted to hex. For displaying addresses, a separate confirm_address is introduced, which simply delegates to confirm_blob, but has a more limited signature. Analogously, there is confirm_text for text data (should maybe be used in many places where we currently use confirm_metadata) and a specialized confirm_amount.
b1b284b
to
2d10eb6
Compare
confirm_hex
was replaced by a more appropriateconfirm_blob
.There are now two main "confirm property" functions:
confirm_blob
should be used when the property is not human-readable text. So for public keys, hashes, passphrase, etc.confirm_text
should be used when the property is human-readable text. So flag names, message texts, etc.Two specializations exist for common cases:
confirm_address
andconfirm_amount
.All screens using the new functions are auto-paginated. This produces part of the UI diff.
The other part is using semantically appropriate layouts from the above set in altcoins, which in some cases changes rendering from bold font to monospace font.
A very significant part of the PR is complete overhaul of Stellar UI.
@andrewkozlik please take a look at 9de567b and the resulting UI diff of
get_ownership_proof