mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-27 04:40:15 +08:00
upgrade deps
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -120,7 +120,7 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
||||
_controller!.addDanmaku(
|
||||
DanmakuContentItem(
|
||||
e.content,
|
||||
color: playerController.blockTypes.contains(6)
|
||||
color: playerController.blockColorful
|
||||
? Colors.white
|
||||
: DmUtils.decimalToColor(e.color),
|
||||
type: DmUtils.getPosition(e.mode),
|
||||
|
||||
@@ -359,7 +359,9 @@ class LiveRoomController extends GetxController {
|
||||
plPlayerController.danmakuController?.addDanmaku(
|
||||
DanmakuContentItem(
|
||||
extra['content'],
|
||||
color: DmUtils.decimalToColor(extra['color']),
|
||||
color: plPlayerController.blockColorful
|
||||
? Colors.white
|
||||
: DmUtils.decimalToColor(extra['color']),
|
||||
type: DmUtils.getPosition(extra['mode']),
|
||||
selfSend: extra['send_from_me'] ?? false,
|
||||
),
|
||||
|
||||
@@ -1537,6 +1537,7 @@ class HeaderControlState extends State<HeaderControl> {
|
||||
}
|
||||
plPlayerController
|
||||
..blockTypes = blockTypes
|
||||
..blockColorful = blockTypes.contains(6)
|
||||
..putDanmakuSettings();
|
||||
setState(() {});
|
||||
try {
|
||||
|
||||
@@ -322,6 +322,7 @@ class PlPlayerController {
|
||||
.toRadixString(16);
|
||||
// 弹幕相关配置
|
||||
late Set<int> blockTypes = Pref.danmakuBlockType;
|
||||
late bool blockColorful = blockTypes.contains(6);
|
||||
late double showArea = Pref.danmakuShowArea;
|
||||
late RxDouble danmakuOpacity = Pref.danmakuOpacity.obs;
|
||||
late double danmakuFontScale = Pref.danmakuFontScale;
|
||||
|
||||
Reference in New Issue
Block a user