mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
@@ -265,7 +265,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
liveRoomController: _liveRoomController,
|
liveRoomController: _liveRoomController,
|
||||||
plPlayerController: plPlayerController,
|
plPlayerController: plPlayerController,
|
||||||
isFullScreen: isFullScreen,
|
isFullScreen: isFullScreen,
|
||||||
isPipMode: isPipMode,
|
isPipMode: plPlayerController.isDesktopPip || isPipMode,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,9 +45,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
icon: const Icon(Icons.refresh),
|
icon: const Icon(Icons.refresh),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
onPressed();
|
onPressed();
|
||||||
if (isDanmaku) {
|
if (!isDanmaku) {
|
||||||
// plPlayerController.putDanmakuSettings();
|
|
||||||
} else {
|
|
||||||
plPlayerController.putSubtitleSettings();
|
plPlayerController.putSubtitleSettings();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -134,6 +132,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
|
|
||||||
void updateFontWeight(double val) {
|
void updateFontWeight(double val) {
|
||||||
DanmakuOptions.danmakuFontWeight = val.toInt();
|
DanmakuOptions.danmakuFontWeight = val.toInt();
|
||||||
|
setState(() {});
|
||||||
setOptions();
|
setOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,11 +274,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('显示区域 ${DanmakuOptions.danmakuShowArea * 100}%'),
|
Text('显示区域 ${DanmakuOptions.danmakuShowArea * 100}%'),
|
||||||
resetBtn(
|
resetBtn(theme, '50.0%', () => updateShowArea(0.5)),
|
||||||
theme,
|
|
||||||
'50.0%',
|
|
||||||
() => updateShowArea(0.5),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -305,11 +300,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('不透明度 ${plPlayerController.danmakuOpacity * 100}%'),
|
Text('不透明度 ${plPlayerController.danmakuOpacity * 100}%'),
|
||||||
resetBtn(
|
resetBtn(theme, '100.0%', () => updateOpacity(1.0)),
|
||||||
theme,
|
|
||||||
'100.0%',
|
|
||||||
() => updateOpacity(1.0),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -337,11 +328,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
Text(
|
Text(
|
||||||
'字体粗细 ${DanmakuOptions.danmakuFontWeight + 1}(可能无法精确调节)',
|
'字体粗细 ${DanmakuOptions.danmakuFontWeight + 1}(可能无法精确调节)',
|
||||||
),
|
),
|
||||||
resetBtn(
|
resetBtn(theme, 6, () => updateFontWeight(5)),
|
||||||
theme,
|
|
||||||
6,
|
|
||||||
() => updateFontWeight(5),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -367,11 +354,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('描边粗细 ${DanmakuOptions.danmakuStrokeWidth}'),
|
Text('描边粗细 ${DanmakuOptions.danmakuStrokeWidth}'),
|
||||||
resetBtn(
|
resetBtn(theme, 1.5, () => updateStrokeWidth(1.5)),
|
||||||
theme,
|
|
||||||
1.5,
|
|
||||||
() => updateStrokeWidth(1.5),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -400,11 +383,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
Text(
|
Text(
|
||||||
'字体大小 ${(DanmakuOptions.danmakuFontScale * 100).toStringAsFixed(1)}%',
|
'字体大小 ${(DanmakuOptions.danmakuFontScale * 100).toStringAsFixed(1)}%',
|
||||||
),
|
),
|
||||||
resetBtn(
|
resetBtn(theme, '100.0%', () => updateFontSize(1.0)),
|
||||||
theme,
|
|
||||||
'100.0%',
|
|
||||||
() => updateFontSize(1.0),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -433,11 +412,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
Text(
|
Text(
|
||||||
'全屏字体大小 ${(DanmakuOptions.danmakuFontScaleFS * 100).toStringAsFixed(1)}%',
|
'全屏字体大小 ${(DanmakuOptions.danmakuFontScaleFS * 100).toStringAsFixed(1)}%',
|
||||||
),
|
),
|
||||||
resetBtn(
|
resetBtn(theme, '120.0%', () => updateFontSizeFS(1.2)),
|
||||||
theme,
|
|
||||||
'120.0%',
|
|
||||||
() => updateFontSizeFS(1.2),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -464,11 +439,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('滚动弹幕时长 ${DanmakuOptions.danmakuDuration} 秒'),
|
Text('滚动弹幕时长 ${DanmakuOptions.danmakuDuration} 秒'),
|
||||||
resetBtn(
|
resetBtn(theme, 7.0, () => updateDuration(7.0)),
|
||||||
theme,
|
|
||||||
7.0,
|
|
||||||
() => updateDuration(7.0),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -494,11 +465,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('静态弹幕时长 ${DanmakuOptions.danmakuStaticDuration} 秒'),
|
Text('静态弹幕时长 ${DanmakuOptions.danmakuStaticDuration} 秒'),
|
||||||
resetBtn(
|
resetBtn(theme, 4.0, () => updateStaticDuration(4.0)),
|
||||||
theme,
|
|
||||||
4.0,
|
|
||||||
() => updateStaticDuration(4.0),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -524,11 +491,7 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('弹幕行高 ${DanmakuOptions.danmakuLineHeight}'),
|
Text('弹幕行高 ${DanmakuOptions.danmakuLineHeight}'),
|
||||||
resetBtn(
|
resetBtn(theme, 1.6, () => updateLineHeight(1.6)),
|
||||||
theme,
|
|
||||||
1.6,
|
|
||||||
() => updateLineHeight(1.6),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: main
|
ref: main
|
||||||
resolved-ref: "1199a960662bf0549a60c0da51909628db041654"
|
resolved-ref: "2012a4b9758bf29b30884bbf27247602925a7945"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/canvas_danmaku.git"
|
url: "https://github.com/bggRGjQaUbCoE/canvas_danmaku.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.2.6"
|
version: "0.2.6"
|
||||||
|
|||||||
Reference in New Issue
Block a user