Adapt tree to take into account Flex
This commit is contained in:
@@ -155,7 +155,7 @@ static void pageCallback(int token, uint8_t index) {
|
||||
static void reviewContinue(void) {
|
||||
if (tx_approval_context.blindSigning) {
|
||||
nbgl_pageInfoDescription_t info = {
|
||||
.centeredInfo.icon = &C_round_warning_64px,
|
||||
.centeredInfo.icon = &C_Important_Circle_64px,
|
||||
.centeredInfo.text1 = "Blind Signing",
|
||||
.centeredInfo.text2 =
|
||||
"This transaction cannot be\nsecurely interpreted by Ledger\nStax. It might put "
|
||||
|
||||
@@ -33,7 +33,7 @@ void ui_message_start(const char *title,
|
||||
void (*rejected_func)(void)) {
|
||||
g_approved_func = approved_func;
|
||||
g_rejected_func = rejected_func;
|
||||
nbgl_useCaseReviewStart(&C_Message_64px,
|
||||
nbgl_useCaseReviewStart(&C_Review_64px,
|
||||
title,
|
||||
NULL,
|
||||
REJECT_BUTTON,
|
||||
|
||||
@@ -26,16 +26,12 @@ static bool display_review_page(uint8_t page, nbgl_pageContent_t *content) {
|
||||
switch (page) {
|
||||
case 0:
|
||||
// limit the value to one page
|
||||
nbgl_getTextMaxLenInNbLines(BAGL_FONT_INTER_MEDIUM_32px,
|
||||
nbgl_getTextMaxLenInNbLines(LARGE_MEDIUM_FONT,
|
||||
strings.tmp.tmp,
|
||||
SCREEN_WIDTH - (2 * BORDER_MARGIN),
|
||||
NB_MAX_LINES_IN_REVIEW,
|
||||
#if (API_LEVEL == 0 || API_LEVEL >= 14)
|
||||
&len,
|
||||
false);
|
||||
#else
|
||||
&len);
|
||||
#endif
|
||||
strings.tmp.tmp[len] = '\0';
|
||||
|
||||
pair.item = strings.tmp.tmp2;
|
||||
|
||||
@@ -43,7 +43,7 @@ static bool display_message(nbgl_pageContent_t *content) {
|
||||
strncpy(g_stax_shared_buffer + eip191MessageIdx,
|
||||
strings.tmp.tmp + stringsTmpTmpIdx,
|
||||
SHARED_BUFFER_SIZE - eip191MessageIdx);
|
||||
reached = nbgl_getTextMaxLenInNbLines(BAGL_FONT_INTER_MEDIUM_32px,
|
||||
reached = nbgl_getTextMaxLenInNbLines(LARGE_MEDIUM_FONT,
|
||||
(char *) g_stax_shared_buffer,
|
||||
SCREEN_WIDTH - (2 * BORDER_MARGIN),
|
||||
NB_MAX_LINES_IN_REVIEW,
|
||||
@@ -91,7 +91,7 @@ static bool display_sign(nbgl_pageContent_t *content) {
|
||||
bool ret = false;
|
||||
|
||||
if (g_position != UI_SIGNING_POSITION_SIGN) {
|
||||
content->type = INFO_LONG_PRESS, content->infoLongPress.icon = &C_Message_64px;
|
||||
content->type = INFO_LONG_PRESS, content->infoLongPress.icon = &C_Review_64px;
|
||||
content->infoLongPress.text = TEXT_SIGN_EIP191;
|
||||
content->infoLongPress.longPressText = SIGN_BUTTON;
|
||||
g_position = UI_SIGNING_POSITION_SIGN;
|
||||
|
||||
@@ -12,7 +12,7 @@ static void ui_warning_contract_data_choice(bool confirm) {
|
||||
}
|
||||
|
||||
void ui_warning_contract_data(void) {
|
||||
nbgl_useCaseChoice(&C_warning64px,
|
||||
nbgl_useCaseChoice(&C_Warning_64px,
|
||||
"This message cannot\nbe clear-signed",
|
||||
"Enable blind-signing in\nthe settings to sign\nthis transaction.",
|
||||
"Exit",
|
||||
|
||||
Reference in New Issue
Block a user