Skip to content

Commit 121f60f

Browse files
committed
Update glyphs + snapshots
1 parent 2d4d2cc commit 121f60f

File tree

20 files changed

+10
-6
lines changed

20 files changed

+10
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "app-boilerplate-rust"
3-
version = "1.7.3"
3+
version = "1.7.4"
44
authors = ["Ledger"]
55
edition = "2021"
66

@@ -42,7 +42,7 @@ icon = "icons/crab_32x32.gif"
4242
icon = "icons/crab_40x40.gif"
4343

4444
[package.metadata.ledger.apex_p]
45-
icon = "crab_32x32.png"
45+
icon = "icons/crab_32x32.png"
4646

4747
[lints.rust]
4848
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("apex_p", "stax", "flex", "nanos", "nanox", "nanosplus"))'] }
File renamed without changes.
File renamed without changes.

src/app_ui/address.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ pub fn ui_display_pk(addr: &[u8]) -> Result<bool, AppSW> {
3030
hex::encode(&addr[addr.len() - DISPLAY_ADDR_BYTES_LEN..]).to_uppercase()
3131
);
3232

33-
// Load glyph from 64x64 4bpp gif file with include_gif macro. Creates an NBGL compatible glyph.
33+
// Load glyph from file with include_gif macro. Creates an NBGL compatible glyph.
34+
#[cfg(target_os = "apex_p")]
35+
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_48x48.png", NBGL));
3436
#[cfg(any(target_os = "stax", target_os = "flex"))]
3537
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_64x64.gif", NBGL));
3638
#[cfg(any(target_os = "nanosplus", target_os = "nanox"))]

src/app_ui/menu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use ledger_device_sdk::nbgl::{NbglGlyph, NbglHomeAndSettings};
2424
pub fn ui_menu_main(_: &mut Comm) -> NbglHomeAndSettings {
2525
// Load glyph from 64x64 4bpp gif file with include_gif macro. Creates an NBGL compatible glyph.
2626
#[cfg(target_os = "apex_p")]
27-
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("crab_48x48.png", NBGL));
27+
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_48x48.png", NBGL));
2828
#[cfg(any(target_os = "stax", target_os = "flex"))]
2929
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_64x64.gif", NBGL));
3030
#[cfg(any(target_os = "nanosplus", target_os = "nanox"))]

src/app_ui/sign.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ pub fn ui_display_tx(tx: &Tx) -> Result<bool, AppSW> {
5252

5353
// Create transaction review
5454

55-
// Load glyph from 64x64 4bpp gif file with include_gif macro. Creates an NBGL compatible glyph.
55+
// Load glyph from file with include_gif macro. Creates an NBGL compatible glyph.
56+
#[cfg(target_os = "apex_p")]
57+
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_48x48.png", NBGL));
5658
#[cfg(any(target_os = "stax", target_os = "flex"))]
5759
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_64x64.gif", NBGL));
5860
#[cfg(any(target_os = "nanosplus", target_os = "nanox"))]
-28 Bytes
Loading
197 Bytes
Loading
197 Bytes
Loading

0 commit comments

Comments
 (0)