diff --git a/assets/images/forest/dogecoin.png b/assets/images/forest/doge.png similarity index 100% rename from assets/images/forest/dogecoin.png rename to assets/images/forest/doge.png diff --git a/assets/images/forest/partcl.png b/assets/images/forest/particl.png similarity index 100% rename from assets/images/forest/partcl.png rename to assets/images/forest/particl.png diff --git a/assets/images/oledBlack/bitcoin.png b/assets/images/oledBlack/bitcoin.png new file mode 100644 index 000000000..63408e07e Binary files /dev/null and b/assets/images/oledBlack/bitcoin.png differ diff --git a/assets/images/oledBlack/bitcoincash.png b/assets/images/oledBlack/bitcoincash.png new file mode 100644 index 000000000..18552e02e Binary files /dev/null and b/assets/images/oledBlack/bitcoincash.png differ diff --git a/assets/images/oledBlack/doge.png b/assets/images/oledBlack/doge.png new file mode 100644 index 000000000..b08e82a5b Binary files /dev/null and b/assets/images/oledBlack/doge.png differ diff --git a/assets/images/oledBlack/epic-cash.png b/assets/images/oledBlack/epic-cash.png new file mode 100644 index 000000000..ad26be290 Binary files /dev/null and b/assets/images/oledBlack/epic-cash.png differ diff --git a/assets/images/oledBlack/firo.png b/assets/images/oledBlack/firo.png new file mode 100644 index 000000000..4a679586d Binary files /dev/null and b/assets/images/oledBlack/firo.png differ diff --git a/assets/images/oledBlack/litecoin.png b/assets/images/oledBlack/litecoin.png new file mode 100644 index 000000000..17994bd47 Binary files /dev/null and b/assets/images/oledBlack/litecoin.png differ diff --git a/assets/images/oledBlack/monero.png b/assets/images/oledBlack/monero.png new file mode 100644 index 000000000..679e647ea Binary files /dev/null and b/assets/images/oledBlack/monero.png differ diff --git a/assets/images/oledBlack/namecoin.png b/assets/images/oledBlack/namecoin.png new file mode 100644 index 000000000..45cf8abb7 Binary files /dev/null and b/assets/images/oledBlack/namecoin.png differ diff --git a/assets/images/oledBlack/particl.png b/assets/images/oledBlack/particl.png new file mode 100644 index 000000000..ef5939f47 Binary files /dev/null and b/assets/images/oledBlack/particl.png differ diff --git a/assets/images/oledBlack/stack.png b/assets/images/oledBlack/stack.png new file mode 100644 index 000000000..b59af1608 Binary files /dev/null and b/assets/images/oledBlack/stack.png differ diff --git a/assets/images/oledBlack/wownero.png b/assets/images/oledBlack/wownero.png new file mode 100644 index 000000000..857ab2b4c Binary files /dev/null and b/assets/images/oledBlack/wownero.png differ diff --git a/lib/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/coin_image.dart b/lib/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/coin_image.dart index c96cc14ad..816a27cd2 100644 --- a/lib/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/coin_image.dart +++ b/lib/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/coin_image.dart @@ -16,7 +16,7 @@ class CoinImage extends StatelessWidget { Widget build(BuildContext context) { return Image( image: AssetImage( - Assets.png.imageFor(coin: coin), + Assets.png.imageFor(coin: coin, context: context), ), width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3, ); diff --git a/lib/pages/add_wallet_views/name_your_wallet_view/name_your_wallet_view.dart b/lib/pages/add_wallet_views/name_your_wallet_view/name_your_wallet_view.dart index 1718e554a..31af6b3bd 100644 --- a/lib/pages/add_wallet_views/name_your_wallet_view/name_your_wallet_view.dart +++ b/lib/pages/add_wallet_views/name_your_wallet_view/name_your_wallet_view.dart @@ -167,7 +167,7 @@ class _NameYourWalletViewState extends ConsumerState { if (!isDesktop) Image( image: AssetImage( - Assets.png.imageFor(coin: coin), + Assets.png.imageFor(coin: coin, context: context), ), height: 100, ), diff --git a/lib/pages/add_wallet_views/restore_wallet_view/restore_options_view/restore_options_view.dart b/lib/pages/add_wallet_views/restore_wallet_view/restore_options_view/restore_options_view.dart index 884ee09e0..2afd1c9b1 100644 --- a/lib/pages/add_wallet_views/restore_wallet_view/restore_options_view/restore_options_view.dart +++ b/lib/pages/add_wallet_views/restore_wallet_view/restore_options_view/restore_options_view.dart @@ -284,7 +284,7 @@ class _RestoreOptionsViewState extends ConsumerState { if (!isDesktop) Image( image: AssetImage( - Assets.png.imageFor(coin: coin), + Assets.png.imageFor(coin: coin, context: context), ), height: 100, ), diff --git a/lib/utilities/assets.dart b/lib/utilities/assets.dart index d65e52299..2c092dd34 100644 --- a/lib/utilities/assets.dart +++ b/lib/utilities/assets.dart @@ -296,34 +296,34 @@ class _PNG { String get glasses => "assets/images/glasses.png"; String get glassesHidden => "assets/images/glasses-hidden.png"; - String Function(BuildContext context) imageFor({required Coin coin}) { + String imageFor({required BuildContext context, required Coin coin}) { switch (coin) { case Coin.bitcoin: case Coin.bitcoinTestNet: - return bitcoin; + return bitcoin(context); case Coin.litecoin: case Coin.litecoinTestNet: - return litecoin; + return litecoin(context); case Coin.bitcoincash: case Coin.bitcoincashTestnet: - return bitcoincash; + return bitcoincash(context); case Coin.dogecoin: case Coin.dogecoinTestNet: - return dogecoin; + return dogecoin(context); case Coin.epicCash: - return epicCash; + return epicCash(context); case Coin.firo: - return firo; + return firo(context); case Coin.firoTestNet: - return firo; + return firo(context); case Coin.monero: - return monero; + return monero(context); case Coin.wownero: - return wownero; + return wownero(context); case Coin.namecoin: - return namecoin; + return namecoin(context); case Coin.particl: - return particl; + return particl(context); } } }