opt slider

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-25 15:35:29 +08:00
parent fd55383778
commit 86e52eec4c
3 changed files with 8 additions and 3 deletions

View File

@@ -936,10 +936,11 @@ class HeaderControlState extends State<HeaderControl> {
final theme = Theme.of(context);
final sliderTheme = SliderThemeData(
trackHeight: 10,
trackShape: MSliderTrackShape(),
thumbColor: theme.colorScheme.primary,
activeTrackColor: theme.colorScheme.primary,
trackHeight: 10,
inactiveTrackColor: theme.colorScheme.onInverseSurface,
thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6.0),
);
@@ -1274,10 +1275,11 @@ class HeaderControlState extends State<HeaderControl> {
final theme = Theme.of(context);
final sliderTheme = SliderThemeData(
trackHeight: 10,
trackShape: MSliderTrackShape(),
thumbColor: theme.colorScheme.primary,
activeTrackColor: theme.colorScheme.primary,
trackHeight: 10,
inactiveTrackColor: theme.colorScheme.onInverseSurface,
thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6.0),
);