forked from LedgerHQ/app-everscale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement NBGL menu and remove unused UI components
- Remove commented-out global UI state variables - Comment out unused UI preprocessing and display functions - Add NBGL menu implementation with app info and settings - Update version references in app configuration handler
- Loading branch information
Showing
6 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,40 @@ | ||
#ifdef HAVE_NBGL | ||
|
||
#include "menu.h" | ||
#include "os.h" | ||
|
||
// ----------------------------------------------------------- | ||
// --------------------- SETTINGS MENU ----------------------- | ||
// ----------------------------------------------------------- | ||
#define SETTING_INFO_NB 2 | ||
static const char* const INFO_TYPES[SETTING_INFO_NB] = {"Version", "Developer"}; | ||
static const char* const INFO_CONTENTS[SETTING_INFO_NB] = {APPVERSION, "Blooo"}; | ||
static const nbgl_contentInfoList_t infoList = { | ||
.nbInfos = SETTING_INFO_NB, | ||
.infoTypes = INFO_TYPES, | ||
.infoContents = INFO_CONTENTS, | ||
}; | ||
|
||
// ----------------------------------------------------------- | ||
// ----------------------- HOME PAGE ------------------------- | ||
// ----------------------------------------------------------- | ||
|
||
void ui_main_menu(void) { | ||
tx_state->currentInstruction = -1; | ||
|
||
nbgl_useCaseHomeAndSettings(APPNAME, | ||
&C_app_everscale_64px, | ||
NULL, | ||
INIT_HOME_PAGE, | ||
NULL, | ||
&infoList, | ||
NULL, | ||
app_quit); | ||
} | ||
|
||
void app_quit(void) { | ||
// exit app here | ||
os_sched_exit(-1); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters