mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
Merge remote-tracking branch 'origin/ui-fixes' into add-ethereum
This commit is contained in:
commit
73ae19dfbe
7 changed files with 400 additions and 392 deletions
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 1.9 MiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 1.9 MiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 3.6 MiB |
|
@ -357,7 +357,7 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
|||
// const SizedBox(
|
||||
// height: 10,
|
||||
// ),
|
||||
(isSorbet || isOcean)
|
||||
(isSorbet)
|
||||
? Image.asset(
|
||||
Assets.png.personaEasy(context),
|
||||
width: 140,
|
||||
|
@ -468,11 +468,17 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
|||
const SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
SvgPicture.asset(
|
||||
Assets.svg.personaIncognito(context),
|
||||
width: isDesktop ? 120 : 140,
|
||||
height: isDesktop ? 120 : 140,
|
||||
),
|
||||
(isSorbet)
|
||||
? Image.asset(
|
||||
Assets.png.personaIncognito(context),
|
||||
width: 140,
|
||||
height: 140,
|
||||
)
|
||||
: SvgPicture.asset(
|
||||
Assets.svg.personaIncognito(context),
|
||||
width: 140,
|
||||
height: 140,
|
||||
),
|
||||
if (isDesktop)
|
||||
const SizedBox(
|
||||
height: 12,
|
||||
|
|
|
@ -21,6 +21,8 @@ class EmptyWallets extends ConsumerWidget {
|
|||
ThemeType.fruitSorbet;
|
||||
final bool isForest =
|
||||
ref.read(colorThemeProvider.state).state.themeType == ThemeType.forest;
|
||||
final bool isOcean = ref.read(colorThemeProvider.state).state.themeType ==
|
||||
ThemeType.oceanBreeze;
|
||||
|
||||
return SafeArea(
|
||||
child: Padding(
|
||||
|
@ -100,13 +102,15 @@ class EmptyWallets extends ConsumerWidget {
|
|||
}
|
||||
}
|
||||
|
||||
class AddWalletButton extends StatelessWidget {
|
||||
class AddWalletButton extends ConsumerWidget {
|
||||
const AddWalletButton({Key? key, required this.isDesktop}) : super(key: key);
|
||||
|
||||
final bool isDesktop;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final bool isOLED = ref.read(colorThemeProvider.state).state.themeType ==
|
||||
ThemeType.oledBlack;
|
||||
return TextButton(
|
||||
style: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
|
@ -129,11 +133,20 @@ class AddWalletButton extends StatelessWidget {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.plus,
|
||||
width: isDesktop ? 18 : null,
|
||||
height: isDesktop ? 18 : null,
|
||||
),
|
||||
isOLED
|
||||
? SvgPicture.asset(
|
||||
Assets.svg.plus,
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.buttonTextPrimary,
|
||||
width: isDesktop ? 18 : null,
|
||||
height: isDesktop ? 18 : null,
|
||||
)
|
||||
: SvgPicture.asset(
|
||||
Assets.svg.plus,
|
||||
width: isDesktop ? 18 : null,
|
||||
height: isDesktop ? 18 : null,
|
||||
),
|
||||
SizedBox(
|
||||
width: isDesktop ? 8 : 5,
|
||||
),
|
||||
|
|
|
@ -273,7 +273,7 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
|||
const SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
(isSorbet || isOcean)
|
||||
(isSorbet)
|
||||
? Image.asset(
|
||||
Assets.png.personaEasy(context),
|
||||
width: 120,
|
||||
|
@ -385,7 +385,7 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
|||
const SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
(isSorbet || isOcean)
|
||||
(isSorbet)
|
||||
? Image.asset(
|
||||
Assets.png.personaIncognito(context),
|
||||
width: 120,
|
||||
|
|
|
@ -198,7 +198,7 @@ class OledBlackColors extends StackColorTheme {
|
|||
|
||||
// text field
|
||||
@override
|
||||
Color get textFieldActiveBG => const Color(0xFF232323);
|
||||
Color get textFieldActiveBG => const Color(0xFF3C3C3C);
|
||||
@override
|
||||
Color get textFieldDefaultBG => const Color(0xFF171717);
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue