From 238a7e9dd9220ea9d11a821aed8dd278bffdbd3a Mon Sep 17 00:00:00 2001 From: liuyu65 Date: Thu, 8 Oct 2026 21:32:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E6=9B=B4=E6=96=B0=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=9B=BE=E6=A0=87=E6=94=B9=E4=B8=BA=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E8=AF=AD=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 空闲态:环形箭头 Icons.refresh(「检查更新」的中文软件通用图标) - 检测到新版本:切换为下载图标 Icons.download + 红色角标 - 更新对话框标题图标同步为下载图标 --- lib/ui/app_shell.dart | 13 ++++++++++--- lib/ui/update_dialog.dart | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/ui/app_shell.dart b/lib/ui/app_shell.dart index 92ec452..56210b1 100644 --- a/lib/ui/app_shell.dart +++ b/lib/ui/app_shell.dart @@ -458,11 +458,18 @@ class _AppShellState extends State { } } - /// 更新检查按钮:检测到新版本时叠加红色角标。 + /// 更新检查按钮。 + /// + /// 空闲态用环形箭头(检查更新,中文软件的通用语义); + /// 检测到新版本时换成下载图标并叠加红色角标,一眼可辨「有新版本可下载」。 Widget _updateBtn(Tokens t) { final UpdateInfo? info = _update; - final Widget btn = _iconBtn(t, Icons.system_update_alt, _openUpdate, - tooltip: info == null ? '检查更新' : '发现新版本 v${info.version}'); + final Widget btn = _iconBtn( + t, + info == null ? Icons.refresh : Icons.download, + _openUpdate, + tooltip: info == null ? '检查更新' : '发现新版本 v${info.version}', + ); if (info == null) return btn; return Badge(backgroundColor: t.danger, smallSize: 8, child: btn); } diff --git a/lib/ui/update_dialog.dart b/lib/ui/update_dialog.dart index 0976622..c5c441b 100644 --- a/lib/ui/update_dialog.dart +++ b/lib/ui/update_dialog.dart @@ -197,7 +197,7 @@ class _UpdateDialogState extends State { // 标题 Row( children: [ - Icon(Icons.system_update_alt, size: 21, color: t.accent), + Icon(Icons.download, size: 21, color: t.accent), const SizedBox(width: 8), Text('发现新版本 v${info.version}', style: TextStyle(color: t.text, fontSize: 17, fontWeight: FontWeight.w700)),