Skip to content

Commit 5e2d7e6

Browse files
Merge pull request #162 from LedgerHQ/cev/nbgl_nano_icon
NBGL Nano Icon for Home Screen
2 parents 9aec1c4 + 171572e commit 5e2d7e6

File tree

24 files changed

+15
-4
lines changed

24 files changed

+15
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ build/
55
bin/
66
debug/
77

8+
# Nano NBGL reversed icon for Home Screen
9+
glyphs/home_boilerplate_14px.gif
10+
811
# Temporary directory with snapshots taken during test runs
912
tests/snapshots-tmp/
1013

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ APPNAME = "Boilerplate"
2828
# Application version
2929
APPVERSION_M = 2
3030
APPVERSION_N = 2
31-
APPVERSION_P = 1
31+
APPVERSION_P = 2
3232
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"
3333

3434
# Application source files
@@ -41,6 +41,12 @@ ICON_NANOSP = icons/app_boilerplate_14px.gif
4141
ICON_STAX = icons/app_boilerplate_32px.gif
4242
ICON_FLEX = icons/app_boilerplate_40px.gif
4343

44+
# With the Nano NBGL Design, the Home Screen icon is the reverse of the App icon:
45+
# It should be on white background, with rounded corners.
46+
# This definition allows SDK Makefiles to automatically generate it based on the App icon.
47+
# Please note that the icon is dynamically generated, and declared in the .gitignore to avoid storing it.
48+
ICON_HOME_NANO = glyphs/home_boilerplate_14px.gif
49+
4450
# Application allowed derivation curves.
4551
# Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1
4652
# If your app needs it, you can specify multiple curves by using:

glyphs/app_boilerplate_16px.gif

-66 Bytes
Binary file not shown.

icons/app_boilerplate_16px.gif

-66 Bytes
Binary file not shown.

src/ui/display.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
#include <stdbool.h> // bool
44

55
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
6-
#define ICON_APP_BOILERPLATE C_app_boilerplate_16px
6+
#define ICON_APP_BOILERPLATE C_app_boilerplate_14px
7+
#define ICON_APP_HOME C_home_boilerplate_14px
78
#define ICON_APP_WARNING C_icon_warning
89
#elif defined(TARGET_STAX) || defined(TARGET_FLEX)
910
#define ICON_APP_BOILERPLATE C_app_boilerplate_64px
11+
#define ICON_APP_HOME ICON_APP_BOILERPLATE
1012
#define ICON_APP_WARNING C_Warning_64px
1113
#endif
1214

src/ui/menu_nbgl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static void review_warning_choice(bool confirm) {
8181

8282
// Reset setting menu to the right page
8383
nbgl_useCaseHomeAndSettings(APPNAME,
84-
&ICON_APP_BOILERPLATE,
84+
&ICON_APP_HOME,
8585
NULL,
8686
initSettingPage,
8787
&settingContents,
@@ -146,7 +146,7 @@ void ui_menu_main(void) {
146146
#endif
147147

148148
nbgl_useCaseHomeAndSettings(APPNAME,
149-
&ICON_APP_BOILERPLATE,
149+
&ICON_APP_HOME,
150150
NULL,
151151
INIT_HOME_PAGE,
152152
&settingContents,
-68 Bytes
Loading
Loading
-19 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
Loading
-8 Bytes
Loading
-19 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
Loading
-95 Bytes
Loading

0 commit comments

Comments
 (0)