mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -17,7 +17,7 @@ import 'package:PiliPlus/models/common/video/video_type.dart';
|
||||
import 'package:PiliPlus/models/user/danmaku_rule.dart';
|
||||
import 'package:PiliPlus/models/video/play/url.dart';
|
||||
import 'package:PiliPlus/models_new/video/video_shot/data.dart';
|
||||
import 'package:PiliPlus/pages/danmaku/dnamaku_model.dart';
|
||||
import 'package:PiliPlus/pages/danmaku/danmaku_model.dart';
|
||||
import 'package:PiliPlus/pages/mine/controller.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/models/bottom_progress_behavior.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/models/data_source.dart';
|
||||
@@ -357,7 +357,7 @@ class PlPlayerController {
|
||||
late double danmakuLineHeight = Pref.danmakuLineHeight;
|
||||
late int subtitlePaddingH = Pref.subtitlePaddingH;
|
||||
late int subtitlePaddingB = Pref.subtitlePaddingB;
|
||||
late double subtitleBgOpaticy = Pref.subtitleBgOpaticy;
|
||||
late double subtitleBgOpacity = Pref.subtitleBgOpacity;
|
||||
final bool showVipDanmaku = Pref.showVipDanmaku; // loop unswitching
|
||||
late double subtitleStrokeWidth = Pref.subtitleStrokeWidth;
|
||||
late int subtitleFontWeight = Pref.subtitleFontWeight;
|
||||
@@ -437,9 +437,9 @@ class PlPlayerController {
|
||||
wordSpacing: 0.1,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.values[subtitleFontWeight],
|
||||
backgroundColor: subtitleBgOpaticy == 0
|
||||
backgroundColor: subtitleBgOpacity == 0
|
||||
? null
|
||||
: Colors.black.withValues(alpha: subtitleBgOpaticy),
|
||||
: Colors.black.withValues(alpha: subtitleBgOpacity),
|
||||
);
|
||||
|
||||
late final Rx<SubtitleViewConfiguration> subtitleConfig = _getSubConfig.obs;
|
||||
@@ -448,7 +448,7 @@ class PlPlayerController {
|
||||
final subTitleStyle = this.subTitleStyle;
|
||||
return SubtitleViewConfiguration(
|
||||
style: subTitleStyle,
|
||||
strokeStyle: subtitleBgOpaticy == 0
|
||||
strokeStyle: subtitleBgOpacity == 0
|
||||
? subTitleStyle.copyWith(
|
||||
color: null,
|
||||
background: null,
|
||||
@@ -1697,7 +1697,7 @@ class PlPlayerController {
|
||||
SettingBoxKey.subtitleFontScaleFS: subtitleFontScaleFS,
|
||||
SettingBoxKey.subtitlePaddingH: subtitlePaddingH,
|
||||
SettingBoxKey.subtitlePaddingB: subtitlePaddingB,
|
||||
SettingBoxKey.subtitleBgOpaticy: subtitleBgOpaticy,
|
||||
SettingBoxKey.subtitleBgOpacity: subtitleBgOpacity,
|
||||
SettingBoxKey.subtitleStrokeWidth: subtitleStrokeWidth,
|
||||
SettingBoxKey.subtitleFontWeight: subtitleFontWeight,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user