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.barCapShape = BarCapShape.round,
|
||||||
this.thumbRadius = 10.0,
|
this.thumbRadius = 10.0,
|
||||||
required this.thumbColor,
|
required this.thumbColor,
|
||||||
this.thumbGlowColor,
|
required this.thumbGlowColor,
|
||||||
this.thumbGlowRadius = 30.0,
|
this.thumbGlowRadius = 30.0,
|
||||||
this.thumbCanPaintOutsideBar = true,
|
this.thumbCanPaintOutsideBar = true,
|
||||||
});
|
});
|
||||||
@@ -154,7 +154,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
|||||||
/// The color of the pressed-down effect of the moveable progress bar thumb.
|
/// The color of the pressed-down effect of the moveable progress bar thumb.
|
||||||
///
|
///
|
||||||
/// By default it is [thumbColor] with an alpha value of 80.
|
/// 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
|
/// The radius of the circle for the pressed-down effect of the moveable
|
||||||
/// progress bar thumb.
|
/// progress bar thumb.
|
||||||
@@ -196,7 +196,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
|||||||
barCapShape: barCapShape,
|
barCapShape: barCapShape,
|
||||||
thumbRadius: thumbRadius,
|
thumbRadius: thumbRadius,
|
||||||
thumbColor: thumbColor,
|
thumbColor: thumbColor,
|
||||||
thumbGlowColor: thumbGlowColor ?? thumbColor,
|
thumbGlowColor: thumbGlowColor,
|
||||||
thumbGlowRadius: thumbGlowRadius,
|
thumbGlowRadius: thumbGlowRadius,
|
||||||
thumbCanPaintOutsideBar: thumbCanPaintOutsideBar,
|
thumbCanPaintOutsideBar: thumbCanPaintOutsideBar,
|
||||||
);
|
);
|
||||||
@@ -219,7 +219,7 @@ class ProgressBar extends LeafRenderObjectWidget {
|
|||||||
..barCapShape = barCapShape
|
..barCapShape = barCapShape
|
||||||
..thumbRadius = thumbRadius
|
..thumbRadius = thumbRadius
|
||||||
..thumbColor = thumbColor
|
..thumbColor = thumbColor
|
||||||
..thumbGlowColor = thumbGlowColor ?? thumbColor
|
..thumbGlowColor = thumbGlowColor
|
||||||
..thumbGlowRadius = thumbGlowRadius
|
..thumbGlowRadius = thumbGlowRadius
|
||||||
..thumbCanPaintOutsideBar = thumbCanPaintOutsideBar;
|
..thumbCanPaintOutsideBar = thumbCanPaintOutsideBar;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1083,6 +1083,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
maxWidth = widget.maxWidth;
|
maxWidth = widget.maxWidth;
|
||||||
maxHeight = widget.maxHeight;
|
maxHeight = widget.maxHeight;
|
||||||
final Color primary = theme.colorScheme.primary;
|
final Color primary = theme.colorScheme.primary;
|
||||||
|
late final thumbGlowColor = primary.withAlpha(80);
|
||||||
late final bufferedBarColor = primary.withValues(alpha: 0.4);
|
late final bufferedBarColor = primary.withValues(alpha: 0.4);
|
||||||
const TextStyle textStyle = TextStyle(
|
const TextStyle textStyle = TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@@ -1507,6 +1508,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
baseBarColor: const Color(0x33FFFFFF),
|
baseBarColor: const Color(0x33FFFFFF),
|
||||||
bufferedBarColor: bufferedBarColor,
|
bufferedBarColor: bufferedBarColor,
|
||||||
thumbColor: primary,
|
thumbColor: primary,
|
||||||
|
thumbGlowColor: thumbGlowColor,
|
||||||
barHeight: 3.5,
|
barHeight: 3.5,
|
||||||
thumbRadius: 2.5,
|
thumbRadius: 2.5,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class BottomControl extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
Color primary = theme.colorScheme.primary;
|
Color primary = theme.colorScheme.primary;
|
||||||
|
final thumbGlowColor = primary.withAlpha(80);
|
||||||
final bufferedBarColor = primary.withValues(alpha: 0.4);
|
final bufferedBarColor = primary.withValues(alpha: 0.4);
|
||||||
//阅读器限制
|
//阅读器限制
|
||||||
Timer? accessibilityDebounce;
|
Timer? accessibilityDebounce;
|
||||||
@@ -109,6 +110,7 @@ class BottomControl extends StatelessWidget {
|
|||||||
baseBarColor: const Color(0x33FFFFFF),
|
baseBarColor: const Color(0x33FFFFFF),
|
||||||
bufferedBarColor: bufferedBarColor,
|
bufferedBarColor: bufferedBarColor,
|
||||||
thumbColor: primary,
|
thumbColor: primary,
|
||||||
|
thumbGlowColor: thumbGlowColor,
|
||||||
barHeight: 3.5,
|
barHeight: 3.5,
|
||||||
thumbRadius: 7,
|
thumbRadius: 7,
|
||||||
onDragStart: onDragStart,
|
onDragStart: onDragStart,
|
||||||
|
|||||||
Reference in New Issue
Block a user