mod: vip color

This commit is contained in:
bggRGjQaUbCoE
2024-08-27 13:15:20 +08:00
parent be558ebe62
commit 6e6f53bf79
4 changed files with 52 additions and 30 deletions

View File

@@ -21,6 +21,12 @@ import '../models/github/latest.dart';
class Utils {
static final Random random = Random();
static Color get vipColor {
return GStorage.brightness == Brightness.light
? const Color(0xFFFF6699)
: const Color(0xFFD44E7D);
}
static Future<String> getCookiePath() async {
final Directory tempDir = await getApplicationSupportDirectory();
final String tempPath = "${tempDir.path}/.plpl/";