From dfe13de2208259bd25c87d1dc5d56a42df99cde5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 29 Mar 2025 17:00:17 +0800 Subject: [PATCH] :sparkles: Program Badges --- assets/translations/en-US.json | 5 ++++- assets/translations/zh-CN.json | 5 ++++- lib/screens/account/profile_page.dart | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/assets/translations/en-US.json b/assets/translations/en-US.json index bb83128..e7b8ca4 100644 --- a/assets/translations/en-US.json +++ b/assets/translations/en-US.json @@ -941,5 +941,8 @@ "settingsResetMemorizedWindowSize": "Reset Window Size", "settingsResetMemorizedWindowSizeDescription": "Reset the memorized window size, and set it to the default size.", "chatDirect": "Direct Messages", - "back": "返回" + "back": "Back", + "badgeProgramDeveloper": "Developer Program Member", + "badgeProgramStellar": "A Stellar", + "badgeProgramModerator": "Community Moderator" } diff --git a/assets/translations/zh-CN.json b/assets/translations/zh-CN.json index c0fc6fc..4b053c6 100644 --- a/assets/translations/zh-CN.json +++ b/assets/translations/zh-CN.json @@ -938,5 +938,8 @@ "settingsResetMemorizedWindowSize": "重置窗口大小", "settingsResetMemorizedWindowSizeDescription": "重置记忆的窗口大小,以重新设置为默认大小。", "chatDirect": "私信", - "back": "返回" + "back": "返回", + "badgeProgramDeveloper": "开发者计划成员", + "badgeProgramStellar": "一颗恒星", + "badgeProgramModerator": "社区管理员" } diff --git a/lib/screens/account/profile_page.dart b/lib/screens/account/profile_page.dart index 36c53df..596b93b 100644 --- a/lib/screens/account/profile_page.dart +++ b/lib/screens/account/profile_page.dart @@ -61,6 +61,21 @@ final Map kBadgesMeta = { Symbols.thumb_up, Colors.lightGreen, ), + 'programs.developers': ( + 'badgeProgramDeveloper', + Symbols.code, + Colors.blue, + ), + 'programs.stellar': ( + 'badgeProgramStellar', + Symbols.family_star, + Colors.orange, + ), + 'programs.moderator': ( + 'badgeProgramModerator', + Symbols.sword_rose, + Colors.blue, + ), }; class UserScreen extends StatefulWidget {