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
? Theme.of(context).colorScheme.onPrimary
: Theme.of(context).colorScheme.onSecondaryContainer,
image: Image.asset(
'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),
padding: EdgeInsets.only(left: 50, right: 30),
color: isBuySelected
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.surfaceContainer,
@ -122,15 +114,7 @@ class _BuySellOptionButtonsState extends State<BuySellOptionButtons> {
textColor: !isBuySelected
? Theme.of(context).colorScheme.onPrimary
: Theme.of(context).colorScheme.onSecondaryContainer,
image: Image.asset(
'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),
padding: EdgeInsets.only(left: 50, right: 30),
color: !isBuySelected
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.surfaceContainer,

View file

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

View file

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