Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix: danmaku settings modal shhet background

Prediditdbc6fa31515f
diff --git a/lib/pages/player/player_item_panel.dart b/lib/pages/player/player_item_panel.dart
index ac372e3f..115972a5 100644
--- a/lib/pages/player/player_item_panel.dart
+++ b/lib/pages/player/player_item_panel.dart
@@ -927,27 +927,31 @@ class _PlayerItemPanelState extends State<PlayerItemPanel> {
widget.keyboardFocus
.requestFocus();
showModalBottomSheet(
+ backgroundColor: Theme.of(context)
+ .colorScheme
+ .brightness ==
+ Brightness.light
+ ? Theme.of(context)
+ .colorScheme
+ .surfaceContainerHigh
+ : null,
isScrollControlled: true,
constraints: BoxConstraints(
maxHeight:
- MediaQuery.of(
- context)
+ MediaQuery.of(context)
.size
.height *
3 /
4,
- maxWidth: (Utils
- .isDesktop() ||
+ maxWidth: (Utils.isDesktop() ||
Utils
.isTablet())
- ? MediaQuery.of(
- context)
+ ? MediaQuery.of(context)
.size
.width *
9 /
16
- : MediaQuery.of(
- context)
+ : MediaQuery.of(context)
.size
.width),
clipBehavior:
diff --git a/lib/pages/player/smallest_player_item_panel.dart b/lib/pages/player/smallest_player_item_panel.dart
index c2a373ca..a85bdcb7 100644
--- a/lib/pages/player/smallest_player_item_panel.dart
+++ b/lib/pages/player/smallest_player_item_panel.dart
@@ -588,6 +588,13 @@ class _SmallestPlayerItemPanelState extends State<SmallestPlayerItemPanel> {
MenuItemButton(
onPressed: () {
showModalBottomSheet(
+ backgroundColor:
+ Theme.of(context).colorScheme.brightness ==
+ Brightness.light
+ ? Theme.of(context)
+ .colorScheme
+ .surfaceContainerHigh
+ : null,
isScrollControlled: true,
constraints: BoxConstraints(
maxHeight: