mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-02 19:02:17 +00:00
Merge remote-tracking branch 'cypherstack/ui-fixes' into simplex
This commit is contained in:
commit
1ebc8868f0
8 changed files with 93 additions and 11 deletions
|
@ -304,11 +304,16 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.backgroundAppBar,
|
.backgroundAppBar,
|
||||||
boxShadow: [
|
boxShadow: Theme.of(context)
|
||||||
Theme.of(context)
|
.extension<StackColors>()!
|
||||||
.extension<StackColors>()!
|
.homeViewButtonBarBoxShadow !=
|
||||||
.standardBoxShadow,
|
null
|
||||||
],
|
? [
|
||||||
|
Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.homeViewButtonBarBoxShadow!,
|
||||||
|
]
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
child: const Padding(
|
child: const Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
|
|
|
@ -217,6 +217,9 @@ abstract class StackColorTheme {
|
||||||
Color get myStackContactIconBG;
|
Color get myStackContactIconBG;
|
||||||
Color get textConfirmTotalAmount;
|
Color get textConfirmTotalAmount;
|
||||||
Color get textSelectedWordTableItem;
|
Color get textSelectedWordTableItem;
|
||||||
|
|
||||||
|
BoxShadow get standardBoxShadow;
|
||||||
|
BoxShadow? get homeViewButtonBarBoxShadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
class CoinThemeColor {
|
class CoinThemeColor {
|
||||||
|
|
|
@ -314,4 +314,18 @@ class DarkColors extends StackColorTheme {
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF003921);
|
Color get textConfirmTotalAmount => const Color(0xFF003921);
|
||||||
@override
|
@override
|
||||||
Color get textSelectedWordTableItem => const Color(0xFF00297A);
|
Color get textSelectedWordTableItem => const Color(0xFF00297A);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow get standardBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow? get homeViewButtonBarBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -314,4 +314,14 @@ class FruitSorbetColors extends StackColorTheme {
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
||||||
@override
|
@override
|
||||||
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow get standardBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow? get homeViewButtonBarBoxShadow => null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -314,4 +314,18 @@ class LightColors extends StackColorTheme {
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
||||||
@override
|
@override
|
||||||
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow get standardBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow? get homeViewButtonBarBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,4 +321,18 @@ class OceanBreezeColors extends StackColorTheme {
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
||||||
@override
|
@override
|
||||||
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow get standardBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow? get homeViewButtonBarBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -316,4 +316,18 @@ class OledBlackColors extends StackColorTheme {
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF144D35);
|
Color get textConfirmTotalAmount => const Color(0xFF144D35);
|
||||||
@override
|
@override
|
||||||
Color get textSelectedWordTableItem => const Color(0xFF143D8E);
|
Color get textSelectedWordTableItem => const Color(0xFF143D8E);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow get standardBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
|
|
||||||
|
@override
|
||||||
|
BoxShadow? get homeViewButtonBarBoxShadow => BoxShadow(
|
||||||
|
color: shadow,
|
||||||
|
spreadRadius: 3,
|
||||||
|
blurRadius: 4,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,6 +176,9 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
final Color textConfirmTotalAmount;
|
final Color textConfirmTotalAmount;
|
||||||
final Color textSelectedWordTableItem;
|
final Color textSelectedWordTableItem;
|
||||||
|
|
||||||
|
final BoxShadow standardBoxShadow;
|
||||||
|
final BoxShadow? homeViewButtonBarBoxShadow;
|
||||||
|
|
||||||
StackColors({
|
StackColors({
|
||||||
required this.themeType,
|
required this.themeType,
|
||||||
required this.background,
|
required this.background,
|
||||||
|
@ -312,6 +315,8 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
required this.myStackContactIconBG,
|
required this.myStackContactIconBG,
|
||||||
required this.textConfirmTotalAmount,
|
required this.textConfirmTotalAmount,
|
||||||
required this.textSelectedWordTableItem,
|
required this.textSelectedWordTableItem,
|
||||||
|
required this.standardBoxShadow,
|
||||||
|
required this.homeViewButtonBarBoxShadow,
|
||||||
});
|
});
|
||||||
|
|
||||||
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
||||||
|
@ -453,6 +458,8 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
myStackContactIconBG: colorTheme.myStackContactIconBG,
|
myStackContactIconBG: colorTheme.myStackContactIconBG,
|
||||||
textConfirmTotalAmount: colorTheme.textConfirmTotalAmount,
|
textConfirmTotalAmount: colorTheme.textConfirmTotalAmount,
|
||||||
textSelectedWordTableItem: colorTheme.textSelectedWordTableItem,
|
textSelectedWordTableItem: colorTheme.textSelectedWordTableItem,
|
||||||
|
homeViewButtonBarBoxShadow: colorTheme.homeViewButtonBarBoxShadow,
|
||||||
|
standardBoxShadow: colorTheme.standardBoxShadow,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -593,6 +600,8 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
Color? myStackContactIconBG,
|
Color? myStackContactIconBG,
|
||||||
Color? textConfirmTotalAmount,
|
Color? textConfirmTotalAmount,
|
||||||
Color? textSelectedWordTableItem,
|
Color? textSelectedWordTableItem,
|
||||||
|
BoxShadow? homeViewButtonBarBoxShadow,
|
||||||
|
BoxShadow? standardBoxShadow,
|
||||||
}) {
|
}) {
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeType: themeType ?? this.themeType,
|
themeType: themeType ?? this.themeType,
|
||||||
|
@ -768,6 +777,9 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
textConfirmTotalAmount ?? this.textConfirmTotalAmount,
|
textConfirmTotalAmount ?? this.textConfirmTotalAmount,
|
||||||
textSelectedWordTableItem:
|
textSelectedWordTableItem:
|
||||||
textSelectedWordTableItem ?? this.textSelectedWordTableItem,
|
textSelectedWordTableItem ?? this.textSelectedWordTableItem,
|
||||||
|
homeViewButtonBarBoxShadow:
|
||||||
|
homeViewButtonBarBoxShadow ?? this.homeViewButtonBarBoxShadow,
|
||||||
|
standardBoxShadow: standardBoxShadow ?? this.standardBoxShadow,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -783,6 +795,8 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeType: other.themeType,
|
themeType: other.themeType,
|
||||||
gradientBackground: other.gradientBackground,
|
gradientBackground: other.gradientBackground,
|
||||||
|
homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow,
|
||||||
|
standardBoxShadow: other.standardBoxShadow,
|
||||||
background: Color.lerp(
|
background: Color.lerp(
|
||||||
background,
|
background,
|
||||||
other.background,
|
other.background,
|
||||||
|
@ -1481,12 +1495,6 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
|
|
||||||
static const _coin = CoinThemeColor();
|
static const _coin = CoinThemeColor();
|
||||||
|
|
||||||
BoxShadow get standardBoxShadow => BoxShadow(
|
|
||||||
color: shadow,
|
|
||||||
spreadRadius: 3,
|
|
||||||
blurRadius: 4,
|
|
||||||
);
|
|
||||||
|
|
||||||
Color colorForStatus(String status) {
|
Color colorForStatus(String status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case "New":
|
case "New":
|
||||||
|
|
Loading…
Reference in a new issue