mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
add light version of simplex logo for dark themes
This commit is contained in:
parent
f3d466ab62
commit
e465030d3d
5 changed files with 9 additions and 3 deletions
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
@ -207,7 +207,7 @@ class _BuyQuotePreviewViewState extends State<BuyQuotePreviewView> {
|
|||
width: 64,
|
||||
height: 32,
|
||||
child: SvgPicture.asset(
|
||||
Assets.buy.simplexLogo,
|
||||
Assets.buy.simplexLogo(context),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -61,7 +61,7 @@ class BuyWarningPopup extends StatelessWidget {
|
|||
width: 64,
|
||||
height: 32,
|
||||
child: SvgPicture.asset(
|
||||
Assets.buy.simplexLogo,
|
||||
Assets.buy.simplexLogo(context),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue