Skip to content
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

Add new UI gadgets #95

Merged
merged 11 commits into from
Nov 16, 2023
Merged

Add new UI gadgets #95

merged 11 commits into from
Nov 16, 2023

Conversation

agrojean-ledger
Copy link
Contributor

Add two new UI gadgets :

  • MultiPageMenu to display menus with pages that can have various styles :

    • PictureNormal : Picture (should be 16x16) with two lines of text (page layout depends on device).
    • PictureBold : Icon on top with one line of text on the bottom.
    • BoldNormal : One line of bold text and one line of normal text on Nano S or up to 3 lines on Nano X/SP.
    • Normal : 2 lines of centered text.

    MultiPageMenu new function takes an io::comm as parameter so its show function can return a page index (in case of user "both button press") or any other event upon reception. It allows for any APDU to be received and processed when a menu is displayed.

  • MultiFieldReview to review multiple fields with a review message at the start and validation/cancel messages at the end. The show function returns a boolean upon validation/cancellation by the user.

ledger_device_ui_sdk/Cargo.toml Show resolved Hide resolved
@agrojean-ledger agrojean-ledger merged commit cee5644 into master Nov 16, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants