add light version of simplex logo for dark themes

This commit is contained in:
sneurlax 2023-01-24 11:12:40 -06:00
parent f3d466ab62
commit e465030d3d
5 changed files with 9 additions and 3 deletions

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -207,7 +207,7 @@ class _BuyQuotePreviewViewState extends State<BuyQuotePreviewView> {
width: 64,
height: 32,
child: SvgPicture.asset(
Assets.buy.simplexLogo,
Assets.buy.simplexLogo(context),
),
),
],

View file

@ -61,7 +61,7 @@ class BuyWarningPopup extends StatelessWidget {
width: 64,
height: 32,
child: SvgPicture.asset(
Assets.buy.simplexLogo,
Assets.buy.simplexLogo(context),
),
),
);

View file

@ -36,7 +36,12 @@ class _BUY {
// "assets/svg/${Theme.of(context).extension<StackColors>()!.themeType.name}/buy.svg";
String get buy => "assets/svg/light/buy-coins-icon.svg";
String get simplexLogo => "assets/svg/buy/Simplex-Nuvei-Logo.svg";
String simplexLogo(BuildContext context) {
return (Theme.of(context).extension<StackColors>()!.themeType ==
ThemeType.dark)
? "assets/svg/buy/Simplex-Nuvei-Logo-light.svg"
: "assets/svg/buy/Simplex-Nuvei-Logo.svg";
}
}
class _SVG {

View file

@ -397,6 +397,7 @@ flutter:
# buy
- assets/svg/buy/Simplex-Nuvei-Logo.svg
- assets/svg/buy/Simplex-Nuvei-Logo-light.svg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.