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

chore: change icons to those, used in app-near (C) app #57

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading