From 6d288832da7179c2365a8fed68e92d088d6599cc Mon Sep 17 00:00:00 2001 From: Robert Malikowski Date: Fri, 21 Aug 2026 19:14:51 +0200 Subject: [PATCH] light mode fixes --- lib/new-ui/pages/buy_sell/buy_sell_confirmation_page.dart | 4 +++- lib/new-ui/pages/buy_sell/buy_sell_payment_method_page.dart | 4 +++- lib/new-ui/pages/buy_sell/buy_sell_provider_page.dart | 6 ++++-- lib/new-ui/pages/buy_sell/buy_sell_redirecting_page.dart | 4 +++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/new-ui/pages/buy_sell/buy_sell_confirmation_page.dart b/lib/new-ui/pages/buy_sell/buy_sell_confirmation_page.dart index 5de696f7b..88fafa07d 100644 --- a/lib/new-ui/pages/buy_sell/buy_sell_confirmation_page.dart +++ b/lib/new-ui/pages/buy_sell/buy_sell_confirmation_page.dart @@ -70,7 +70,9 @@ class BuySellConfirmationPage extends StatelessWidget { spacing: 8, children: [ CakeImageWidget( - imageUrl: buySellViewModel.selectedQuote!.darkIconPath, + imageUrl: Theme.of(context).brightness == Brightness.light + ? buySellViewModel.selectedQuote!.lightIconPath + : buySellViewModel.selectedQuote!.darkIconPath, width: 24, height: 24, ), diff --git a/lib/new-ui/pages/buy_sell/buy_sell_payment_method_page.dart b/lib/new-ui/pages/buy_sell/buy_sell_payment_method_page.dart index e1ca3f449..c4ad495d2 100644 --- a/lib/new-ui/pages/buy_sell/buy_sell_payment_method_page.dart +++ b/lib/new-ui/pages/buy_sell/buy_sell_payment_method_page.dart @@ -44,7 +44,9 @@ class BuySellPaymentMethodPage extends StatelessWidget { keyValue: item.title, label: item.title, showArrow: false, - iconPath: item.darkIconPath, + iconPath: Theme.of(context).brightness == Brightness.light + ? item.lightIconPath + : item.darkIconPath, iconColor: item.paymentMethodType.isMonochromeIcon ? Theme.of(context).colorScheme.onSurfaceVariant : null, diff --git a/lib/new-ui/pages/buy_sell/buy_sell_provider_page.dart b/lib/new-ui/pages/buy_sell/buy_sell_provider_page.dart index f7cbf571f..64d9f95a7 100644 --- a/lib/new-ui/pages/buy_sell/buy_sell_provider_page.dart +++ b/lib/new-ui/pages/buy_sell/buy_sell_provider_page.dart @@ -143,8 +143,10 @@ class _BuySellProviderPageState extends State { secondaryLabel: quote.rampName != null ? quote.provider.title : null, subtitle: quote.badges.isEmpty ? null : quote.badges.join(" - "), subtitleColor: Theme.of(context).colorScheme.primary, - iconPath: quote.darkIconPath, - onTap: () { + iconPath: Theme.of(context).brightness == Brightness.light + ? quote.lightIconPath + : quote.darkIconPath, + onTap: () { widget.buySellViewModel.changeOption(quote); navigateToConfirmation(context); }, diff --git a/lib/new-ui/pages/buy_sell/buy_sell_redirecting_page.dart b/lib/new-ui/pages/buy_sell/buy_sell_redirecting_page.dart index f96531b82..c4b614de3 100644 --- a/lib/new-ui/pages/buy_sell/buy_sell_redirecting_page.dart +++ b/lib/new-ui/pages/buy_sell/buy_sell_redirecting_page.dart @@ -84,7 +84,9 @@ class _BuySellRedirectingPageState extends State { spacing: 24, children: [ CakeImageWidget( - imageUrl: widget.buySellViewModel.selectedQuote!.darkIconPath, + imageUrl: Theme.of(context).brightness == Brightness.light + ? widget.buySellViewModel.selectedQuote!.lightIconPath + : widget.buySellViewModel.selectedQuote!.darkIconPath, width: 64, height: 64, ),