Minor UI Fixes (#2296)

* Fix some colors

* fix(themes): Adjust background and text colors for action buttons on info bottomsheet

---------

Co-authored-by: Blazebrain <davidadegoke16@gmail.com>
This commit is contained in:
tuxsudo 2025-05-27 12:01:46 +00:00 committed by GitHub
parent 41fa97a203
commit 46a73de82e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 29 deletions

View file

@ -93,15 +93,7 @@ class _BuySellOptionButtonsState extends State<BuySellOptionButtons> {
textColor: isBuySelected textColor: isBuySelected
? Theme.of(context).colorScheme.onPrimary ? Theme.of(context).colorScheme.onPrimary
: Theme.of(context).colorScheme.onSecondaryContainer, : Theme.of(context).colorScheme.onSecondaryContainer,
image: Image.asset( padding: EdgeInsets.only(left: 50, right: 30),
'assets/images/buy.png',
height: 25,
width: 25,
color: isBuySelected
? Theme.of(context).colorScheme.onPrimary
: Theme.of(context).colorScheme.onSecondaryContainer,
),
padding: EdgeInsets.only(left: 10, right: 30),
color: isBuySelected color: isBuySelected
? Theme.of(context).colorScheme.primary ? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.surfaceContainer, : Theme.of(context).colorScheme.surfaceContainer,
@ -122,15 +114,7 @@ class _BuySellOptionButtonsState extends State<BuySellOptionButtons> {
textColor: !isBuySelected textColor: !isBuySelected
? Theme.of(context).colorScheme.onPrimary ? Theme.of(context).colorScheme.onPrimary
: Theme.of(context).colorScheme.onSecondaryContainer, : Theme.of(context).colorScheme.onSecondaryContainer,
image: Image.asset( padding: EdgeInsets.only(left: 50, right: 30),
'assets/images/sell.png',
height: 25,
width: 25,
color: !isBuySelected
? Theme.of(context).colorScheme.onPrimary
: Theme.of(context).colorScheme.onSecondaryContainer,
),
padding: EdgeInsets.only(left: 10, right: 30),
color: !isBuySelected color: !isBuySelected
? Theme.of(context).colorScheme.primary ? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.surfaceContainer, : Theme.of(context).colorScheme.surfaceContainer,

View file

@ -33,7 +33,7 @@ class WelcomePage extends BasePage {
final Uri _url = final Uri _url =
Uri.parse('https://docs.cakewallet.com/get-started/setup/create-first-wallet/'); Uri.parse('https://docs.cakewallet.com/get-started/setup/create-first-wallet/');
return IconButton( return IconButton(
icon: Icon(Icons.info_outline), icon: Icon(Icons.info_outline, size: 26,),
onPressed: () async { onPressed: () async {
await launchUrl(_url); await launchUrl(_url);
}, },

View file

@ -88,7 +88,6 @@ class InfoBottomSheet extends BaseBottomSheet {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium!.copyWith( style: Theme.of(context).textTheme.bodyMedium!.copyWith(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).colorScheme.onSurfaceVariant, color: Theme.of(context).colorScheme.onSurfaceVariant,
decoration: TextDecoration.none, decoration: TextDecoration.none,
@ -138,12 +137,8 @@ class InfoBottomSheet extends BaseBottomSheet {
key: leftActionButtonKey, key: leftActionButtonKey,
onPressed: actionLeftButton, onPressed: actionLeftButton,
text: leftButtonText ?? '', text: leftButtonText ?? '',
color: currentTheme.isDark color: Theme.of(context).colorScheme.surfaceContainer,
? Theme.of(context).colorScheme.surfaceContainerLow textColor: Theme.of(context).colorScheme.onSecondaryContainer,
: Theme.of(context).colorScheme.surfaceContainer,
textColor: currentTheme.isDark
? Theme.of(context).colorScheme.onSurfaceVariant
: Theme.of(context).colorScheme.onPrimary,
), ),
), ),
), ),
@ -155,9 +150,7 @@ class InfoBottomSheet extends BaseBottomSheet {
onPressed: actionRightButton, onPressed: actionRightButton,
text: rightButtonText ?? '', text: rightButtonText ?? '',
color: Theme.of(context).colorScheme.primary, color: Theme.of(context).colorScheme.primary,
textColor: currentTheme.isDark textColor: Theme.of(context).colorScheme.onPrimary,
? Theme.of(context).colorScheme.onSurfaceVariant
: Theme.of(context).colorScheme.onPrimary,
), ),
), ),
), ),