mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -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);
|
||||
|
||||
@@ -15,6 +15,8 @@ class GlobalData {
|
||||
|
||||
bool dynamicsWaterfallFlow = Pref.dynamicsWaterfallFlow;
|
||||
|
||||
bool showMedal = Pref.showMedal;
|
||||
|
||||
// 私有构造函数
|
||||
GlobalData._();
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user