mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
feat: custom show vip danmaku
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -113,7 +113,10 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
|||||||
? Colors.white
|
? Colors.white
|
||||||
: DmUtils.decimalToColor(e.color),
|
: DmUtils.decimalToColor(e.color),
|
||||||
type: DmUtils.getPosition(e.mode),
|
type: DmUtils.getPosition(e.mode),
|
||||||
isColorful: e.colorful == DmColorfulType.VipGradualColor,
|
isColorful: playerController.showVipDanmaku &&
|
||||||
|
e.colorful == DmColorfulType.VipGradualColor
|
||||||
|
? true
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1747,6 +1747,13 @@ List<SettingsModel> get extraSettings => [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
SettingsModel(
|
||||||
|
settingsType: SettingsType.sw1tch,
|
||||||
|
title: '显示会员彩色弹幕',
|
||||||
|
leading: Icon(MdiIcons.gradientHorizontal),
|
||||||
|
setKey: SettingBoxKey.showVipDanmaku,
|
||||||
|
defaultVal: true,
|
||||||
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
enableFeedback: true,
|
enableFeedback: true,
|
||||||
|
|||||||
@@ -274,6 +274,7 @@ class PlPlayerController {
|
|||||||
late int subtitlePaddingH = GStorage.subtitlePaddingH;
|
late int subtitlePaddingH = GStorage.subtitlePaddingH;
|
||||||
late int subtitlePaddingB = GStorage.subtitlePaddingB;
|
late int subtitlePaddingB = GStorage.subtitlePaddingB;
|
||||||
late double subtitleBgOpaticy = GStorage.subtitleBgOpaticy;
|
late double subtitleBgOpaticy = GStorage.subtitleBgOpaticy;
|
||||||
|
late bool showVipDanmaku = GStorage.showVipDanmaku;
|
||||||
|
|
||||||
// 播放顺序相关
|
// 播放顺序相关
|
||||||
PlayRepeat playRepeat = PlayRepeat.pause;
|
PlayRepeat playRepeat = PlayRepeat.pause;
|
||||||
|
|||||||
@@ -336,6 +336,9 @@ class GStorage {
|
|||||||
static bool get savedRcmdTip =>
|
static bool get savedRcmdTip =>
|
||||||
GStorage.setting.get(SettingBoxKey.savedRcmdTip, defaultValue: true);
|
GStorage.setting.get(SettingBoxKey.savedRcmdTip, defaultValue: true);
|
||||||
|
|
||||||
|
static bool get showVipDanmaku =>
|
||||||
|
GStorage.setting.get(SettingBoxKey.showVipDanmaku, defaultValue: true);
|
||||||
|
|
||||||
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
||||||
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
||||||
|
|
||||||
@@ -554,6 +557,7 @@ class SettingBoxKey {
|
|||||||
openInBrowser = 'openInBrowser',
|
openInBrowser = 'openInBrowser',
|
||||||
refreshDragPercentage = 'refreshDragPercentage',
|
refreshDragPercentage = 'refreshDragPercentage',
|
||||||
refreshDisplacement = 'refreshDisplacement',
|
refreshDisplacement = 'refreshDisplacement',
|
||||||
|
showVipDanmaku = 'showVipDanmaku',
|
||||||
|
|
||||||
// Sponsor Block
|
// Sponsor Block
|
||||||
enableSponsorBlock = 'enableSponsorBlock',
|
enableSponsorBlock = 'enableSponsorBlock',
|
||||||
|
|||||||
Reference in New Issue
Block a user