Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
chore: change icons to those, used in app-near (C) app
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed May 20, 2024
1 parent b35243e commit b00ae56
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ path = ["44'/397'"]
name = "NEAR"

[package.metadata.ledger.nanos]
icon = "crab.gif"
icon = "icons/app_near_16px.gif"

[package.metadata.ledger.nanox]
icon = "crab_14x14.gif"
icon = "icons/app_near_14px.gif"

[package.metadata.ledger.nanosplus]
icon = "crab_14x14.gif"
icon = "icons/app_near_14px.gif"

[features]
default = []
Expand Down
Binary file removed crab.gif
Binary file not shown.
Binary file renamed crab_14x14.gif → icons/app_near_14px.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/app_near_16px.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/app_ui/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ fn ui_about_menu(comm: &mut Comm) -> Event<Instruction> {
}

pub fn ui_menu_main(comm: &mut Comm) -> Event<Instruction> {
const APP_ICON: Glyph = Glyph::from_include(include_gif!("crab.gif"));
#[cfg(target_os = "nanos")]
const APP_ICON: Glyph = Glyph::from_include(include_gif!("icons/app_near_16px.gif"));
#[cfg(target_os = "nanosplus")]
const APP_ICON: Glyph = Glyph::from_include(include_gif!("icons/app_near_14px.gif"));
#[cfg(target_os = "nanox")]
const APP_ICON: Glyph = Glyph::from_include(include_gif!("icons/app_near_14px.gif"));
let pages = [
// The from trait allows to create different styles of pages
// without having to use the new() function.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b00ae56

Please sign in to comment.