diff --git a/assets/svg/oledBlack/oled-black-theme.svg b/assets/svg/oledBlack/oled-black-theme.svg deleted file mode 100644 index 70a14e115..000000000 --- a/assets/svg/oledBlack/oled-black-theme.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib/utilities/theme/color_theme.dart b/lib/utilities/theme/color_theme.dart index 94544ff11..c9853891f 100644 --- a/lib/utilities/theme/color_theme.dart +++ b/lib/utilities/theme/color_theme.dart @@ -7,6 +7,8 @@ import 'package:stackwallet/utilities/theme/oled_black_colors.dart'; enum ThemeType { light, dark, oceanBreeze, oledBlack } +// adjust this file + extension ThemeTypeExt on ThemeType { StackColorTheme get colorTheme { switch (this) { @@ -144,6 +146,8 @@ abstract class StackColorTheme { Color get textFieldDefaultBG; Color get textFieldErrorBG; Color get textFieldSuccessBG; + Color get textFieldErrorBorder; + Color get textFieldSuccessBorder; Color get textFieldActiveSearchIconLeft; Color get textFieldDefaultSearchIconLeft; Color get textFieldErrorSearchIconLeft; diff --git a/lib/utilities/theme/dark_colors.dart b/lib/utilities/theme/dark_colors.dart index d55581921..eae8fa5a8 100644 --- a/lib/utilities/theme/dark_colors.dart +++ b/lib/utilities/theme/dark_colors.dart @@ -194,6 +194,10 @@ class DarkColors extends StackColorTheme { Color get textFieldErrorBG => const Color(0xFFFFB4A9); @override Color get textFieldSuccessBG => const Color(0xFF8EF5C3); + @override + Color get textFieldErrorBorder => textFieldErrorBG; + @override + Color get textFieldSuccessBorder => textFieldSuccessBG; @override Color get textFieldActiveSearchIconLeft => const Color(0xFFA9ACAC); diff --git a/lib/utilities/theme/light_colors.dart b/lib/utilities/theme/light_colors.dart index 1303d0b75..27e1edd71 100644 --- a/lib/utilities/theme/light_colors.dart +++ b/lib/utilities/theme/light_colors.dart @@ -194,6 +194,10 @@ class LightColors extends StackColorTheme { Color get textFieldErrorBG => const Color(0xFFFFDAD4); @override Color get textFieldSuccessBG => const Color(0xFFB9E9D4); + @override + Color get textFieldErrorBorder => textFieldErrorBG; + @override + Color get textFieldSuccessBorder => textFieldSuccessBG; @override Color get textFieldActiveSearchIconLeft => const Color(0xFFA9ACAC); diff --git a/lib/utilities/theme/ocean_breeze_colors.dart b/lib/utilities/theme/ocean_breeze_colors.dart index 8c4259bb9..9e010dfd3 100644 --- a/lib/utilities/theme/ocean_breeze_colors.dart +++ b/lib/utilities/theme/ocean_breeze_colors.dart @@ -201,6 +201,10 @@ class OceanBreezeColors extends StackColorTheme { Color get textFieldErrorBG => const Color(0xFFF6C7C3); @override Color get textFieldSuccessBG => const Color(0xFFADD6D2); + @override + Color get textFieldErrorBorder => textFieldErrorBG; + @override + Color get textFieldSuccessBorder => textFieldSuccessBG; @override Color get textFieldActiveSearchIconLeft => const Color(0xFF86898C); diff --git a/lib/utilities/theme/oled_black_colors.dart b/lib/utilities/theme/oled_black_colors.dart index c54a42db9..41b43c3e6 100644 --- a/lib/utilities/theme/oled_black_colors.dart +++ b/lib/utilities/theme/oled_black_colors.dart @@ -196,6 +196,10 @@ class OledBlackColors extends StackColorTheme { @override Color get textFieldSuccessBG => const Color(0xFF141414); //add border color vars here + @override + Color get textFieldErrorBorder => const Color(0xFFCF6679); + @override + Color get textFieldSuccessBorder => const Color(0xFF23CFA1); @override Color get textFieldActiveSearchIconLeft => const Color(0xFF9C9C9C); diff --git a/lib/utilities/theme/stack_colors.dart b/lib/utilities/theme/stack_colors.dart index 9764128e4..9aaa6072d 100644 --- a/lib/utilities/theme/stack_colors.dart +++ b/lib/utilities/theme/stack_colors.dart @@ -110,6 +110,8 @@ class StackColors extends ThemeExtension { final Color textFieldDefaultBG; final Color textFieldErrorBG; final Color textFieldSuccessBG; + final Color textFieldErrorBorder; + final Color textFieldSuccessBorder; final Color textFieldActiveSearchIconLeft; final Color textFieldDefaultSearchIconLeft; final Color textFieldErrorSearchIconLeft; @@ -258,6 +260,8 @@ class StackColors extends ThemeExtension { required this.textFieldDefaultBG, required this.textFieldErrorBG, required this.textFieldSuccessBG, + required this.textFieldErrorBorder, + required this.textFieldSuccessBorder, required this.textFieldActiveSearchIconLeft, required this.textFieldDefaultSearchIconLeft, required this.textFieldErrorSearchIconLeft, @@ -394,6 +398,8 @@ class StackColors extends ThemeExtension { textFieldDefaultBG: colorTheme.textFieldDefaultBG, textFieldErrorBG: colorTheme.textFieldErrorBG, textFieldSuccessBG: colorTheme.textFieldSuccessBG, + textFieldErrorBorder: colorTheme.textFieldErrorBorder, + textFieldSuccessBorder: colorTheme.textFieldSuccessBorder, textFieldActiveSearchIconLeft: colorTheme.textFieldActiveSearchIconLeft, textFieldDefaultSearchIconLeft: colorTheme.textFieldDefaultSearchIconLeft, textFieldErrorSearchIconLeft: colorTheme.textFieldErrorSearchIconLeft, @@ -533,6 +539,8 @@ class StackColors extends ThemeExtension { Color? textFieldDefaultBG, Color? textFieldErrorBG, Color? textFieldSuccessBG, + Color? textFieldErrorBorder, + Color? textFieldSuccessBorder, Color? textFieldActiveSearchIconLeft, Color? textFieldDefaultSearchIconLeft, Color? textFieldErrorSearchIconLeft, @@ -679,6 +687,9 @@ class StackColors extends ThemeExtension { textFieldDefaultBG: textFieldDefaultBG ?? this.textFieldDefaultBG, textFieldErrorBG: textFieldErrorBG ?? this.textFieldErrorBG, textFieldSuccessBG: textFieldSuccessBG ?? this.textFieldSuccessBG, + textFieldErrorBorder: textFieldErrorBorder ?? this.textFieldErrorBorder, + textFieldSuccessBorder: + textFieldSuccessBorder ?? this.textFieldSuccessBorder, textFieldActiveSearchIconLeft: textFieldActiveSearchIconLeft ?? this.textFieldActiveSearchIconLeft, textFieldDefaultSearchIconLeft: @@ -1177,6 +1188,16 @@ class StackColors extends ThemeExtension { other.textFieldSuccessBG, t, )!, + textFieldErrorBorder: Color.lerp( + textFieldErrorBorder, + other.textFieldErrorBorder, + t, + )!, + textFieldSuccessBorder: Color.lerp( + textFieldSuccessBorder, + other.textFieldSuccessBorder, + t, + )!, textFieldActiveSearchIconLeft: Color.lerp( textFieldActiveSearchIconLeft, other.textFieldActiveSearchIconLeft,