From 932ba08187952906627bcf0665c193d780d17584 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sun, 29 Mar 2026 21:10:46 +0800 Subject: [PATCH] feat: surface account entry in sidebar footer --- lib/widgets/sidebar_navigation.dart | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/widgets/sidebar_navigation.dart b/lib/widgets/sidebar_navigation.dart index 69a9c345..603df0a5 100644 --- a/lib/widgets/sidebar_navigation.dart +++ b/lib/widgets/sidebar_navigation.dart @@ -629,6 +629,16 @@ class SidebarFooter extends StatelessWidget { color: palette.chromeStroke.withValues(alpha: 0.9), ), const SizedBox(height: 6), + if (showAccountButton) ...[ + ChromeIconActionButton( + icon: currentSection == WorkspaceDestination.account + ? Icons.account_circle_rounded + : Icons.account_circle_outlined, + tooltip: appText('打开账号页', 'Open account'), + onPressed: onOpenAccount, + ), + const SizedBox(height: 6), + ], ChromeLanguageActionButton( appLanguage: appLanguage, compact: true, @@ -706,6 +716,18 @@ class SidebarFooter extends StatelessWidget { color: palette.chromeStroke.withValues(alpha: 0.9), ), const SizedBox(height: AppSpacing.xs), + if (showAccountButton) ...[ + _SidebarNavItem( + section: WorkspaceDestination.account, + selected: currentSection == WorkspaceDestination.account, + collapsed: false, + emphasis: _SidebarItemEmphasis.secondary, + favorite: false, + showFavoriteToggle: false, + onTap: onOpenAccount, + ), + const SizedBox(height: AppSpacing.xs), + ], if (showSettingsButton) ...[ _SidebarNavItem( section: WorkspaceDestination.settings,