mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
Merge remote-tracking branch 'origin/paynyms' into ui-fixes
This commit is contained in:
commit
47fd7b2e8d
12 changed files with 57 additions and 6 deletions
|
@ -54,7 +54,7 @@ class _IntroViewState extends State<IntroView> {
|
||||||
),
|
),
|
||||||
child: Image(
|
child: Image(
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
Assets.png.stack,
|
Assets.png.stack(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -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,
|
||||||
),
|
),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue