mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix thumbGlowColor
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -43,7 +43,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
||||
this.barCapShape = BarCapShape.round,
|
||||
this.thumbRadius = 10.0,
|
||||
required this.thumbColor,
|
||||
this.thumbGlowColor,
|
||||
required this.thumbGlowColor,
|
||||
this.thumbGlowRadius = 30.0,
|
||||
this.thumbCanPaintOutsideBar = true,
|
||||
});
|
||||
@@ -154,7 +154,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
||||
/// The color of the pressed-down effect of the moveable progress bar thumb.
|
||||
///
|
||||
/// By default it is [thumbColor] with an alpha value of 80.
|
||||
final Color? thumbGlowColor;
|
||||
final Color thumbGlowColor;
|
||||
|
||||
/// The radius of the circle for the pressed-down effect of the moveable
|
||||
/// progress bar thumb.
|
||||
@@ -196,7 +196,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
||||
barCapShape: barCapShape,
|
||||
thumbRadius: thumbRadius,
|
||||
thumbColor: thumbColor,
|
||||
thumbGlowColor: thumbGlowColor ?? thumbColor,
|
||||
thumbGlowColor: thumbGlowColor,
|
||||
thumbGlowRadius: thumbGlowRadius,
|
||||
thumbCanPaintOutsideBar: thumbCanPaintOutsideBar,
|
||||
);
|
||||
@@ -219,7 +219,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
||||
..barCapShape = barCapShape
|
||||
..thumbRadius = thumbRadius
|
||||
..thumbColor = thumbColor
|
||||
..thumbGlowColor = thumbGlowColor ?? thumbColor
|
||||
..thumbGlowColor = thumbGlowColor
|
||||
..thumbGlowRadius = thumbGlowRadius
|
||||
..thumbCanPaintOutsideBar = thumbCanPaintOutsideBar;
|
||||
}
|
||||
|
||||
@@ -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