Skip to content

Commit

Permalink
changes in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Jul 22, 2024
1 parent c09a52e commit f6bbb4f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions app/ui/view_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ static const char *txn_choice_message = "Reject transaction?";
static const char *add_choice_message = "Reject address?";
static const char *ui_choice_message = "Reject configuration?";

static const char *txn_verified = "TRANSACTION\nSIGNED";
static const char *txn_verified = "Transaction\nsigned";
static const char *txn_cancelled = "Transaction rejected";

static const char *add_verified = "ADDRESS\nVERIFIED";
static const char *add_verified = "Address\nverified";
static const char *add_cancelled = "Address verification\ncancelled";

static void h_expert_toggle() { app_mode_set_expert(!app_mode_expert()); }
Expand Down Expand Up @@ -269,25 +269,7 @@ void h_review_update() {
static bool settings_screen_callback(uint8_t page, nbgl_pageContent_t *content) {
const uint16_t infoElements = sizeof(INFO_KEYS_PAGE) / sizeof(INFO_KEYS_PAGE[0]);
switch (page) {
// Info page 0
case 0: {
content->type = INFOS_LIST;
content->infosList.nbInfos = MAX_INFO_LIST_ITEM_PER_PAGE;
content->infosList.infoContents = INFO_VALUES_PAGE;
content->infosList.infoTypes = INFO_KEYS_PAGE;
break;
}

// Info page 1
case 1: {
content->type = INFOS_LIST;
content->infosList.nbInfos = infoElements - MAX_INFO_LIST_ITEM_PER_PAGE;
content->infosList.infoContents = &INFO_VALUES_PAGE[MAX_INFO_LIST_ITEM_PER_PAGE];
content->infosList.infoTypes = &INFO_KEYS_PAGE[MAX_INFO_LIST_ITEM_PER_PAGE];
break;
}

case 2: {
// Config
content->type = SWITCHES_LIST;
content->switchesList.nbSwitches = 1;
Expand Down Expand Up @@ -320,6 +302,24 @@ static bool settings_screen_callback(uint8_t page, nbgl_pageContent_t *content)
break;
}

// Info page 0
case 1: {
content->type = INFOS_LIST;
content->infosList.nbInfos = MAX_INFO_LIST_ITEM_PER_PAGE;
content->infosList.infoContents = INFO_VALUES_PAGE;
content->infosList.infoTypes = INFO_KEYS_PAGE;
break;
}

// Info page 1
case 2: {
content->type = INFOS_LIST;
content->infosList.nbInfos = infoElements - MAX_INFO_LIST_ITEM_PER_PAGE;
content->infosList.infoContents = &INFO_VALUES_PAGE[MAX_INFO_LIST_ITEM_PER_PAGE];
content->infosList.infoTypes = &INFO_KEYS_PAGE[MAX_INFO_LIST_ITEM_PER_PAGE];
break;
}

default:
ZEMU_LOGF(50, "Incorrect settings page: %d\n", page)
return false;
Expand Down

0 comments on commit f6bbb4f

Please sign in to comment.