Merge remote-tracking branch 'origin/paynyms' into ui-fixes

This commit is contained in:
ryleedavis 2023-02-10 14:42:12 -07:00
commit 47fd7b2e8d
12 changed files with 57 additions and 6 deletions

View file

@ -54,7 +54,7 @@ class _IntroViewState extends State<IntroView> {
), ),
child: Image( child: Image(
image: AssetImage( image: AssetImage(
Assets.png.stack, Assets.png.stack(context),
), ),
), ),
), ),

View file

@ -72,7 +72,7 @@ class SettingsListButton extends StatelessWidget {
style: STextStyles.smallMed14(context).copyWith( style: STextStyles.smallMed14(context).copyWith(
color: Theme.of(context) color: Theme.of(context)
.extension<StackColors>()! .extension<StackColors>()!
.accentColorDark, .textDark,
), ),
), ),
), ),

View file

@ -31,7 +31,7 @@ class EmptyWallets extends StatelessWidget {
), ),
Image( Image(
image: AssetImage( image: AssetImage(
Assets.png.stack, Assets.png.stack(context),
), ),
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3, width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
), ),

View file

@ -105,6 +105,8 @@ abstract class StackColorTheme {
Color get numberTextDefault; Color get numberTextDefault;
Color get numpadTextDefault; Color get numpadTextDefault;
Color get bottomNavText; Color get bottomNavText;
Color get customTextButtonEnabledText;
Color get customTextButtonDisabledText;
// switch background // switch background
Color get switchBGOn; Color get switchBGOn;

View file

@ -106,6 +106,10 @@ class DarkColors extends StackColorTheme {
Color get numpadTextDefault => const Color(0xFFFFFFFF); Color get numpadTextDefault => const Color(0xFFFFFFFF);
@override @override
Color get bottomNavText => const Color(0xFFFFFFFF); Color get bottomNavText => const Color(0xFFFFFFFF);
@override
Color get customTextButtonEnabledText => buttonTextBorderless;
@override
Color get customTextButtonDisabledText => textSubtitle1;
// switch // switch
@override @override

View file

@ -106,6 +106,10 @@ class ForestColors extends StackColorTheme {
Color get numpadTextDefault => const Color(0xFFFFFFFF); Color get numpadTextDefault => const Color(0xFFFFFFFF);
@override @override
Color get bottomNavText => const Color(0xFF232323); Color get bottomNavText => const Color(0xFF232323);
@override
Color get customTextButtonEnabledText => infoItemIcons;
@override
Color get customTextButtonDisabledText => textSubtitle1;
// switch // switch
@override @override

View file

@ -82,6 +82,10 @@ class FruitSorbetColors extends StackColorTheme {
Color get numpadBackDefault => const Color(0xFFF95369); Color get numpadBackDefault => const Color(0xFFF95369);
@override @override
Color get bottomNavBack => const Color(0xFFFFFFFF); Color get bottomNavBack => const Color(0xFFFFFFFF);
@override
Color get customTextButtonEnabledText => buttonTextBorderless;
@override
Color get customTextButtonDisabledText => textSubtitle1;
// button text/element // button text/element
@override @override

View file

@ -106,6 +106,10 @@ class LightColors extends StackColorTheme {
Color get numpadTextDefault => const Color(0xFFFFFFFF); Color get numpadTextDefault => const Color(0xFFFFFFFF);
@override @override
Color get bottomNavText => const Color(0xFF232323); Color get bottomNavText => const Color(0xFF232323);
@override
Color get customTextButtonEnabledText => buttonTextBorderless;
@override
Color get customTextButtonDisabledText => textSubtitle1;
// switch // switch
@override @override

View file

@ -113,6 +113,10 @@ class OceanBreezeColors extends StackColorTheme {
Color get numpadTextDefault => const Color(0xFFFFFFFF); Color get numpadTextDefault => const Color(0xFFFFFFFF);
@override @override
Color get bottomNavText => const Color(0xFF232323); Color get bottomNavText => const Color(0xFF232323);
@override
Color get customTextButtonEnabledText => buttonTextBorderless;
@override
Color get customTextButtonDisabledText => textSubtitle1;
// switch // switch
@override @override

View file

@ -107,6 +107,10 @@ class OledBlackColors extends StackColorTheme {
Color get numpadTextDefault => const Color(0xFF000000); Color get numpadTextDefault => const Color(0xFF000000);
@override @override
Color get bottomNavText => const Color(0xFFDEDEDE); Color get bottomNavText => const Color(0xFFDEDEDE);
@override
Color get customTextButtonEnabledText => buttonTextBorderless;
@override
Color get customTextButtonDisabledText => textSubtitle1;
// switch // switch
@override @override

View file

@ -59,6 +59,8 @@ class StackColors extends ThemeExtension<StackColors> {
final Color numberTextDefault; final Color numberTextDefault;
final Color numpadTextDefault; final Color numpadTextDefault;
final Color bottomNavText; final Color bottomNavText;
final Color customTextButtonEnabledText;
final Color customTextButtonDisabledText;
// switch background // switch background
final Color switchBGOn; final Color switchBGOn;
@ -235,6 +237,8 @@ class StackColors extends ThemeExtension<StackColors> {
required this.numberTextDefault, required this.numberTextDefault,
required this.numpadTextDefault, required this.numpadTextDefault,
required this.bottomNavText, required this.bottomNavText,
required this.customTextButtonEnabledText,
required this.customTextButtonDisabledText,
required this.switchBGOn, required this.switchBGOn,
required this.switchBGOff, required this.switchBGOff,
required this.switchBGDisabled, required this.switchBGDisabled,
@ -383,6 +387,8 @@ class StackColors extends ThemeExtension<StackColors> {
numberTextDefault: colorTheme.numberTextDefault, numberTextDefault: colorTheme.numberTextDefault,
numpadTextDefault: colorTheme.numpadTextDefault, numpadTextDefault: colorTheme.numpadTextDefault,
bottomNavText: colorTheme.bottomNavText, bottomNavText: colorTheme.bottomNavText,
customTextButtonEnabledText: colorTheme.customTextButtonEnabledText,
customTextButtonDisabledText: colorTheme.customTextButtonDisabledText,
switchBGOn: colorTheme.switchBGOn, switchBGOn: colorTheme.switchBGOn,
switchBGOff: colorTheme.switchBGOff, switchBGOff: colorTheme.switchBGOff,
switchBGDisabled: colorTheme.switchBGDisabled, switchBGDisabled: colorTheme.switchBGDisabled,
@ -533,6 +539,8 @@ class StackColors extends ThemeExtension<StackColors> {
Color? numberTextDefault, Color? numberTextDefault,
Color? numpadTextDefault, Color? numpadTextDefault,
Color? bottomNavText, Color? bottomNavText,
Color? customTextButtonEnabledText,
Color? customTextButtonDisabledText,
Color? switchBGOn, Color? switchBGOn,
Color? switchBGOff, Color? switchBGOff,
Color? switchBGDisabled, Color? switchBGDisabled,
@ -686,6 +694,10 @@ class StackColors extends ThemeExtension<StackColors> {
numberTextDefault: numberTextDefault ?? this.numberTextDefault, numberTextDefault: numberTextDefault ?? this.numberTextDefault,
numpadTextDefault: numpadTextDefault ?? this.numpadTextDefault, numpadTextDefault: numpadTextDefault ?? this.numpadTextDefault,
bottomNavText: bottomNavText ?? this.bottomNavText, bottomNavText: bottomNavText ?? this.bottomNavText,
customTextButtonEnabledText:
customTextButtonEnabledText ?? this.customTextButtonEnabledText,
customTextButtonDisabledText:
customTextButtonDisabledText ?? this.customTextButtonDisabledText,
switchBGOn: switchBGOn ?? this.switchBGOn, switchBGOn: switchBGOn ?? this.switchBGOn,
switchBGOff: switchBGOff ?? this.switchBGOff, switchBGOff: switchBGOff ?? this.switchBGOff,
switchBGDisabled: switchBGDisabled ?? this.switchBGDisabled, switchBGDisabled: switchBGDisabled ?? this.switchBGDisabled,
@ -1061,6 +1073,16 @@ class StackColors extends ThemeExtension<StackColors> {
other.bottomNavText, other.bottomNavText,
t, t,
)!, )!,
customTextButtonEnabledText: Color.lerp(
customTextButtonEnabledText,
other.customTextButtonEnabledText,
t,
)!,
customTextButtonDisabledText: Color.lerp(
customTextButtonDisabledText,
other.customTextButtonDisabledText,
t,
)!,
switchBGOn: Color.lerp( switchBGOn: Color.lerp(
switchBGOn, switchBGOn,
other.switchBGOn, other.switchBGOn,

View file

@ -134,9 +134,12 @@ class CustomTextButton extends StatelessWidget {
return _CustomTextButton( return _CustomTextButton(
key: UniqueKey(), key: UniqueKey(),
text: text, text: text,
enabledColor: enabledColor: Theme.of(context)
Theme.of(context).extension<StackColors>()!.buttonTextBorderless, .extension<StackColors>()!
disabledColor: Theme.of(context).extension<StackColors>()!.textSubtitle1, .customTextButtonEnabledText,
disabledColor: Theme.of(context)
.extension<StackColors>()!
.customTextButtonDisabledText,
enabled: enabled, enabled: enabled,
textSize: textSize, textSize: textSize,
onTap: onTap, onTap: onTap,