mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix: add missing buy image to theme and fix a couple other asset refs
This commit is contained in:
parent
bd476a04a0
commit
8f5da9c4da
4 changed files with 13 additions and 4 deletions
|
@ -1983,6 +1983,7 @@ class StackTheme {
|
|||
@Embedded(inheritance: false)
|
||||
class ThemeAssets {
|
||||
final String bellNew;
|
||||
final String buy;
|
||||
final String personaIncognito;
|
||||
final String personaEasy;
|
||||
final String stack;
|
||||
|
@ -2035,6 +2036,7 @@ class ThemeAssets {
|
|||
|
||||
ThemeAssets({
|
||||
required this.bellNew,
|
||||
required this.buy,
|
||||
required this.personaIncognito,
|
||||
required this.personaEasy,
|
||||
required this.stack,
|
||||
|
@ -2092,6 +2094,8 @@ class ThemeAssets {
|
|||
return ThemeAssets(
|
||||
bellNew:
|
||||
"$applicationThemesDirectoryPath/$internalThemeUuid/${json["assets"]["bell_new"] as String}",
|
||||
buy:
|
||||
"$applicationThemesDirectoryPath/$internalThemeUuid/${json["assets"]["buy"] as String}",
|
||||
personaIncognito:
|
||||
"$applicationThemesDirectoryPath/$internalThemeUuid/${json["assets"]["persona_incognito"] as String}",
|
||||
personaEasy:
|
||||
|
|
|
@ -18,8 +18,8 @@ import 'package:stackwallet/route_generator.dart';
|
|||
import 'package:stackwallet/services/coins/epiccash/epiccash_wallet.dart';
|
||||
import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
|
||||
import 'package:stackwallet/services/mixins/paynym_wallet_interface.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/amount/amount.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -515,7 +515,11 @@ class _ConfirmTransactionViewState
|
|||
child: Row(
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.send(context),
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.send,
|
||||
),
|
||||
),
|
||||
width: 32,
|
||||
height: 32,
|
||||
),
|
||||
|
|
|
@ -62,7 +62,7 @@ class DesktopBuyIcon extends ConsumerWidget {
|
|||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.buy(context),
|
||||
ref.watch(themeProvider.select((value) => value.assets.buy)),
|
||||
width: 20,
|
||||
height: 20,
|
||||
color: DesktopMenuItemId.buy ==
|
||||
|
|
|
@ -17,6 +17,7 @@ import 'package:stackwallet/providers/providers.dart';
|
|||
import 'package:stackwallet/providers/wallet/my_paynym_account_state_provider.dart';
|
||||
import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
|
||||
import 'package:stackwallet/services/mixins/paynym_wallet_interface.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/utilities/amount/amount.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
|
@ -347,7 +348,7 @@ class _DesktopWalletFeaturesState extends ConsumerState<DesktopWalletFeatures> {
|
|||
width: buttonWidth,
|
||||
buttonHeight: ButtonHeight.l,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.buy(context),
|
||||
ref.watch(themeProvider.select((value) => value.assets.buy)),
|
||||
height: 20,
|
||||
width: 20,
|
||||
color: Theme.of(context)
|
||||
|
|
Loading…
Reference in a new issue