From 320664a547f89340e0df613bd1c8ca01e99898e6 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 16 Nov 2025 17:50:30 +0800 Subject: [PATCH] :lipstick: Friends overview optimization --- assets/i18n/zh-CN.json | 4 ++-- lib/widgets/account/friends_overview.dart | 28 +++++++++++++++++++---- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/assets/i18n/zh-CN.json b/assets/i18n/zh-CN.json index 24d5208c..48bf8ba1 100644 --- a/assets/i18n/zh-CN.json +++ b/assets/i18n/zh-CN.json @@ -251,10 +251,10 @@ "translatorBadgeName": "翻译者", "translatorBadgeDescription": "协助将 Solar Network 翻译成不同语言", "wallet": "钱包", - "walletCurrencyPoints": "新太阳点", + "walletCurrencyPoints": "溯源点数", "walletCurrencyShortPoints": "NSP", "walletCurrencyGolds": "太阳币", - "walletCurrencyShortGolds": "TSD", + "walletCurrencyShortGolds": "NSD", "retry": "重试", "creatorHubUnselectedHint": "选择/创建一个发布者以开始使用。", "relationships": "关系", diff --git a/lib/widgets/account/friends_overview.dart b/lib/widgets/account/friends_overview.dart index 3c61c3f7..f17d6130 100644 --- a/lib/widgets/account/friends_overview.dart +++ b/lib/widgets/account/friends_overview.dart @@ -126,21 +126,39 @@ class _FriendTile extends ConsumerWidget { ) : null, ), - // Online indicator + // Online indicator - show play arrow if user has activities, otherwise green dot Positioned( bottom: 0, right: 0, child: Container( - width: 12, - height: 12, + width: 16, + height: 16, decoration: BoxDecoration( - color: Colors.green, - shape: BoxShape.circle, + color: + friend.activities.isNotEmpty + ? Colors.blue.withOpacity(0.8) + : Colors.green, + shape: + friend.activities.isNotEmpty + ? BoxShape.rectangle + : BoxShape.circle, + borderRadius: + friend.activities.isNotEmpty + ? BorderRadius.circular(4) + : null, border: Border.all( color: theme.colorScheme.surface, width: 2, ), ), + child: + friend.activities.isNotEmpty + ? Icon( + Symbols.play_arrow, + size: 10, + color: Colors.white, + ) + : null, ), ), ],