show live rank

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-28 20:48:24 +08:00
parent a037d8e793
commit 2a52157c3f
24 changed files with 490 additions and 47 deletions

View File

@@ -21,6 +21,13 @@ abstract final class Utils {
static const jsonEncoder = JsonEncoder.withIndent(' ');
static Color index2Color(int index, Color color) => switch (index) {
0 => const Color(0xFFfdad13),
1 => const Color(0xFF8aace1),
2 => const Color(0xFFdfa777),
_ => color,
};
static String themeUrl(bool isDark) =>
'native.theme=${isDark ? 2 : 1}&night=${isDark ? 1 : 0}';