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

Export switch subtext setter #162

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Export switch subtext setter #162

merged 3 commits into from
Jan 7, 2025

Conversation

0xPxt
Copy link
Collaborator

@0xPxt 0xPxt commented Dec 31, 2024

  • Created view_set_switch_subtext so that any app can modify the subtext of a switch according to its needs.

🔗 zboto Link

Copy link
Collaborator

@chcmedeiros chcmedeiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@emmanuelm41 emmanuelm41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few questions

@@ -292,7 +278,9 @@ static void settings_screen_callback(uint8_t index, nbgl_content_t *content) {
#ifdef APP_BLINDSIGN_MODE_ENABLED
switches[BLINDSIGN_MODE].initState = app_mode_blindsign();
switches[BLINDSIGN_MODE].text = "Blind sign";
switches[BLINDSIGN_MODE].subText = "";
if ((switches[BLINDSIGN_MODE].subText) == NULL) {
switches[BLINDSIGN_MODE].subText = "Allows signing transactions without seeing all fields";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there enough space to display this on flex/stax? instead of "seeing", maybe "reviewing"? Otherwise, let's ask AI what it thinks about this description haha.

app/ui/view_nbgl.c Show resolved Hide resolved
@0xPxt 0xPxt force-pushed the view_set_switch_subtext branch from 5e317d3 to 22bc419 Compare January 7, 2025 12:53
@0xPxt 0xPxt force-pushed the view_set_switch_subtext branch from 22bc419 to 35dc757 Compare January 7, 2025 13:41
@0xPxt 0xPxt merged commit 6ffc457 into main Jan 7, 2025
7 checks passed
@0xPxt 0xPxt deleted the view_set_switch_subtext branch January 7, 2025 14:33
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.

4 participants