From 420d77c1436bad5a9b26af1a1ee5b7ab1f31d6af Mon Sep 17 00:00:00 2001 From: tuxsudo Date: Sat, 15 Feb 2025 12:19:48 -0500 Subject: [PATCH] Ux enhancements (#2031) * Fix dashboard card outline * Add back wallets menu button * Disable boxshadow again --- .../dashboard/pages/balance/balance_row_widget.dart | 2 +- lib/src/widgets/dashboard_card_widget.dart | 12 +++++++----- lib/src/widgets/setting_actions.dart | 12 ++++++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/lib/src/screens/dashboard/pages/balance/balance_row_widget.dart b/lib/src/screens/dashboard/pages/balance/balance_row_widget.dart index e7cd97a59..6342257b3 100644 --- a/lib/src/screens/dashboard/pages/balance/balance_row_widget.dart +++ b/lib/src/screens/dashboard/pages/balance/balance_row_widget.dart @@ -329,7 +329,7 @@ class BalanceRowWidget extends StatelessWidget { borderRadius: BorderRadius.circular(30.0), border: Border.all( color: Theme.of(context).extension()!.cardBorderColor, - width: 1, + width: 1.5, ), color: Theme.of(context).extension()!.syncedBackgroundColor, boxShadow: [ diff --git a/lib/src/widgets/dashboard_card_widget.dart b/lib/src/widgets/dashboard_card_widget.dart index bb145e4c0..6fc660592 100644 --- a/lib/src/widgets/dashboard_card_widget.dart +++ b/lib/src/widgets/dashboard_card_widget.dart @@ -46,9 +46,10 @@ class DashBoardRoundedCardWidget extends StatelessWidget { width: double.infinity, decoration: BoxDecoration( borderRadius: BorderRadius.circular(customBorder ?? 20), - border: Border.all( - color: Theme.of(context).extension()!.cardBorderColor, - ), + // border: Border.all( + // color: Theme.of(context).extension()!.cardBorderColor, + // width: 1 + // ), // boxShadow: [ // BoxShadow( // color: Theme.of(context).extension()!.cardBorderColor @@ -58,9 +59,10 @@ class DashBoardRoundedCardWidget extends StatelessWidget { // ) // ], ), - child: TextButton( + child: OutlinedButton( onPressed: onTap, - style: TextButton.styleFrom( + style: OutlinedButton.styleFrom( + side: BorderSide(width: 1, color: Theme.of(context).extension()!.cardBorderColor), backgroundColor: Theme.of(context).extension()!.syncedBackgroundColor, shape: RoundedRectangleBorder( diff --git a/lib/src/widgets/setting_actions.dart b/lib/src/widgets/setting_actions.dart index 4862f234d..c5938b746 100644 --- a/lib/src/widgets/setting_actions.dart +++ b/lib/src/widgets/setting_actions.dart @@ -17,6 +17,7 @@ class SettingActions { static List all = [ connectionSettingAction, + walletSettingAction, addressBookSettingAction, silentPaymentsSettingAction, litecoinMwebSettingAction, @@ -30,6 +31,7 @@ class SettingActions { static List desktopSettings = [ connectionSettingAction, + walletSettingAction, addressBookSettingAction, silentPaymentsSettingAction, securityBackupSettingAction, @@ -75,6 +77,16 @@ class SettingActions { }, ); + static SettingActions walletSettingAction = SettingActions._( + key: ValueKey('dashboard_page_menu_widget_wallet_menu_button_key'), + name: (context) => S.of(context).wallets, + image: 'assets/images/wallet_menu.png', + onTap: (BuildContext context) { + Navigator.pop(context); + Navigator.of(context).pushNamed(Routes.walletList); + }, + ); + static SettingActions addressBookSettingAction = SettingActions._( key: ValueKey('dashboard_page_menu_widget_address_book_button_key'), name: (context) => S.of(context).address_book_menu,