Now uses macros for NBGL contstant texts

This commit is contained in:
Alexandre Paillier
2023-07-18 10:44:20 +02:00
parent 9396ae81d7
commit 779fc4b61d
12 changed files with 63 additions and 43 deletions

View File

@@ -1,6 +1,15 @@
#ifndef UI_SIGNING_H_
#define UI_SIGNING_H_
#define SIGN_BUTTON "Hold to sign"
#define REJECT_BUTTON "Reject"
#define SIGN(msg) "Sign " msg "?"
#define REVIEW(msg) "Review " msg
#define REJECT(msg) "Reject " msg
#define REJECT_QUESTION(msg) REJECT(msg) "?"
#define REJECT_CONFIRM_BUTTON "Yes, reject"
#define RESUME(msg) "Go back to " msg
typedef enum {
UI_SIGNING_POSITION_START = 0,
UI_SIGNING_POSITION_REVIEW,