Skip to content

Commit

Permalink
[fix][ui] Status page text vertically centered
Browse files Browse the repository at this point in the history
  • Loading branch information
lpascal-ledger committed Aug 1, 2024
1 parent f742da5 commit 43fbe12
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ui_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ void app_nbgl_start_review(uint8_t nb_pairs,
.smallCaseForValue = false,
.nbMaxLinesForValue = 0,
.wrapping = false};

nbgl_layoutAddTagValueList(layout, &tagValueList);

if (onSelect) {
Expand Down Expand Up @@ -445,9 +444,9 @@ void app_nbgl_status(const char *message,
.centeredInfo.onTop = false,
.centeredInfo.style = LARGE_CASE_INFO,
.centeredInfo.text1 = message,
.centeredInfo.text2 = "",
.centeredInfo.text3 = &g.display_status[0],
.tapActionText = "",
.centeredInfo.text2 = NULL,
.centeredInfo.text3 = g.display_status[0] == 0 ? NULL : &g.display_status[0],
.tapActionText = NULL,
.tapActionToken = QUIT_TOKEN,
.topRightStyle = NO_BUTTON_STYLE,
.actionButtonText = NULL,
Expand Down

0 comments on commit 43fbe12

Please sign in to comment.