mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 12:07:11 +08:00
fix thumbGlowColor
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1083,6 +1083,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
maxWidth = widget.maxWidth;
|
||||
maxHeight = widget.maxHeight;
|
||||
final Color primary = theme.colorScheme.primary;
|
||||
late final thumbGlowColor = primary.withAlpha(80);
|
||||
late final bufferedBarColor = primary.withValues(alpha: 0.4);
|
||||
const TextStyle textStyle = TextStyle(
|
||||
color: Colors.white,
|
||||
@@ -1507,6 +1508,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
baseBarColor: const Color(0x33FFFFFF),
|
||||
bufferedBarColor: bufferedBarColor,
|
||||
thumbColor: primary,
|
||||
thumbGlowColor: thumbGlowColor,
|
||||
barHeight: 3.5,
|
||||
thumbRadius: 2.5,
|
||||
);
|
||||
|
||||
@@ -31,6 +31,7 @@ class BottomControl extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
Color primary = theme.colorScheme.primary;
|
||||
final thumbGlowColor = primary.withAlpha(80);
|
||||
final bufferedBarColor = primary.withValues(alpha: 0.4);
|
||||
//阅读器限制
|
||||
Timer? accessibilityDebounce;
|
||||
@@ -109,6 +110,7 @@ class BottomControl extends StatelessWidget {
|
||||
baseBarColor: const Color(0x33FFFFFF),
|
||||
bufferedBarColor: bufferedBarColor,
|
||||
thumbColor: primary,
|
||||
thumbGlowColor: thumbGlowColor,
|
||||
barHeight: 3.5,
|
||||
thumbRadius: 7,
|
||||
onDragStart: onDragStart,
|
||||
|
||||
Reference in New Issue
Block a user