use icon glyph instead of transaction
This commit is contained in:
@@ -30,7 +30,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
else if (page == 1) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Confirm parameter";
|
||||
content->infoLongPress.longPressText = "Hold to confirm";
|
||||
}
|
||||
@@ -47,7 +47,7 @@ static void reviewContinue(void) {
|
||||
}
|
||||
|
||||
static void buildScreen(void) {
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56, "Verify parameter", NULL, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH, "Verify parameter", NULL, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
void ui_confirm_parameter(void) {
|
||||
|
||||
@@ -30,7 +30,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
else if (page == 1) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Confirm selector";
|
||||
content->infoLongPress.longPressText = "Hold to confirm";
|
||||
}
|
||||
@@ -47,7 +47,7 @@ static void reviewContinue(void) {
|
||||
}
|
||||
|
||||
static void buildScreen(void) {
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56, "Verify selector", NULL, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH, "Verify selector", NULL, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
void ui_confirm_selector(void) {
|
||||
|
||||
@@ -37,7 +37,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
else if (page == 1) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = review_string;
|
||||
content->infoLongPress.longPressText = "Hold to approve";
|
||||
}
|
||||
@@ -53,7 +53,7 @@ static void reviewContinue(void) {
|
||||
}
|
||||
|
||||
static void buildFirstPage(void) {
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56, review_string, NULL, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH, review_string, NULL, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
void ui_display_privacy_public_key(void) {
|
||||
|
||||
@@ -24,7 +24,7 @@ static void reviewChoice(bool confirm) {
|
||||
}
|
||||
static bool displaySignPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Sign typed message";
|
||||
content->infoLongPress.longPressText = "Hold to confirm";
|
||||
return true;
|
||||
|
||||
@@ -41,7 +41,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
else if (page == 1) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Sign typed message";
|
||||
content->infoLongPress.longPressText = "Hold to approuve";
|
||||
}
|
||||
@@ -57,7 +57,7 @@ static void reviewContinue(void) {
|
||||
|
||||
|
||||
static void buildFirstPage(void) {
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56, "Sign typed message", NULL, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH, "Sign typed message", NULL, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
void ui_sign_712_v0(void) {
|
||||
|
||||
@@ -40,7 +40,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
else if (page == 1) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Review stark limit order";
|
||||
content->infoLongPress.longPressText = "Hold to confirm";
|
||||
}
|
||||
@@ -57,7 +57,7 @@ static void reviewContinue(void) {
|
||||
|
||||
|
||||
static void buildFirstPage(void) {
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56, "Review stark limit order", NULL, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH, "Review stark limit order", NULL, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
void ui_stark_limit_order(void) {
|
||||
|
||||
@@ -85,7 +85,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
if (page == 2) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Review transaction";
|
||||
content->infoLongPress.longPressText = "Hold to confirm";
|
||||
}
|
||||
@@ -114,7 +114,7 @@ void ui_stark_transfer(bool selfTransfer, bool conditional) {
|
||||
subTitle = "Transfer";
|
||||
}
|
||||
}
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56, "Review stark transaction", subTitle, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH, "Review stark transaction", subTitle, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
#endif // #ifdef HAVE_STARKWARE
|
||||
|
||||
@@ -43,7 +43,7 @@ static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
|
||||
}
|
||||
else if (page == 1) {
|
||||
content->type = INFO_LONG_PRESS,
|
||||
content->infoLongPress.icon = &C_badge_transaction_56;
|
||||
content->infoLongPress.icon = &ICONGLYPH;
|
||||
content->infoLongPress.text = "Unsafe Stark Sign";
|
||||
content->infoLongPress.longPressText = "Hold to confirm";
|
||||
}
|
||||
@@ -59,7 +59,7 @@ static void reviewContinue(void) {
|
||||
}
|
||||
|
||||
static void buildFirstPage(void) {
|
||||
nbgl_useCaseReviewStart(&C_badge_transaction_56,"Unsafe Stark Sign", NULL, "Reject", reviewContinue, reviewReject);
|
||||
nbgl_useCaseReviewStart(&ICONGLYPH,"Unsafe Stark Sign", NULL, "Reject", reviewContinue, reviewReject);
|
||||
}
|
||||
|
||||
void ui_stark_unsafe_sign(void) {
|
||||
|
||||
Reference in New Issue
Block a user