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 15:01:46 +03:00
committed by GitHub
co-authored by Blazebrain
parent 41fa97a203
commit 46a73de82e
3 changed files with 6 additions and 29 deletions
@@ -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,
+1 -1
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);
},
@@ -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,
),
),
),