Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-23 11:47:56 +08:00
parent 1724f0d202
commit 9578f948b4
20 changed files with 132 additions and 77 deletions

View File

@@ -1,9 +1,14 @@
import 'package:flex_seed_scheme/flex_seed_scheme.dart';
import 'package:flutter/material.dart';
const _pinkLight = Color(0xFFFF6699);
const _pinkDark = Color(0xFFD44E7D);
extension ColorSchemeExt on ColorScheme {
Color get vipColor =>
brightness.isLight ? const Color(0xFFFF6699) : const Color(0xFFD44E7D);
Color get vipColor => brightness.isLight ? _pinkLight : _pinkDark;
Color get btnColor =>
brightness.isLight ? _pinkLight : const Color(0xFF8F0030);
Color get freeColor =>
brightness.isLight ? const Color(0xFFFF7F24) : const Color(0xFFD66011);

View File

@@ -15,6 +15,8 @@ class GlobalData {
bool dynamicsWaterfallFlow = Pref.dynamicsWaterfallFlow;
bool showMedal = Pref.showMedal;
// 私有构造函数
GlobalData._();

View File

@@ -100,7 +100,8 @@ abstract final class SettingBoxKey {
preInitPlayer = 'preInitPlayer',
mainTabBarView = 'mainTabBarView',
searchSuggestion = 'searchSuggestion',
showDynDecorate = 'showDynDecorate',
showDecorate = 'showDynDecorate',
showMedal = 'showMedal',
enableLivePhoto = 'enableLivePhoto',
showSeekPreview = 'showSeekPreview',
showDmChart = 'showDmChart',

View File

@@ -477,8 +477,11 @@ abstract final class Pref {
static bool get searchSuggestion =>
_setting.get(SettingBoxKey.searchSuggestion, defaultValue: true);
static bool get showDynDecorate =>
_setting.get(SettingBoxKey.showDynDecorate, defaultValue: true);
static bool get showDecorate =>
_setting.get(SettingBoxKey.showDecorate, defaultValue: true);
static bool get showMedal =>
_setting.get(SettingBoxKey.showMedal, defaultValue: true);
static bool get enableLivePhoto =>
_setting.get(SettingBoxKey.enableLivePhoto, defaultValue: true);