Skip to content

Commit

Permalink
Merge pull request #608 from lamarios/fix/slider-in-dark-mode
Browse files Browse the repository at this point in the history
fix some ui issues
  • Loading branch information
lamarios authored Sep 29, 2024
2 parents 925273e + 3f2d1e0 commit b8fafaf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
7 changes: 7 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ class MyApp extends StatelessWidget {
systemOverlayStyle: getUiOverlayStyle(context,
dark: darkColorScheme, light: lightColorScheme));

var sliderTheme =
const SliderThemeData(inactiveTrackColor: Colors.blue);

return MaterialApp.router(
routerConfig: appRouter.config(
navigatorObservers: () => [MyRouteObserver()],
Expand Down Expand Up @@ -251,6 +254,8 @@ class MyApp extends StatelessWidget {
navigationBarTheme: navigationBarTheme,
navigationRailTheme: navigationRailTheme,
appBarTheme: appBarTheme,
sliderTheme: sliderTheme.copyWith(
inactiveTrackColor: lightColorScheme.secondaryContainer),
progressIndicatorTheme: ProgressIndicatorThemeData(
circularTrackColor: lightColorScheme.secondaryContainer
.withOpacity(0.8))),
Expand All @@ -260,6 +265,8 @@ class MyApp extends StatelessWidget {
appBarTheme: appBarTheme,
navigationBarTheme: navigationBarTheme,
navigationRailTheme: navigationRailTheme,
sliderTheme: sliderTheme.copyWith(
inactiveTrackColor: darkColorScheme.secondaryContainer),
progressIndicatorTheme: ProgressIndicatorThemeData(
circularTrackColor:
darkColorScheme.secondaryContainer.withOpacity(0.8))),
Expand Down
2 changes: 2 additions & 0 deletions lib/player/views/components/player_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ class PlayerControls extends StatelessWidget {
data: ThemeData(
useMaterial3: true,
colorScheme: darkColorScheme,
sliderTheme: SliderThemeData(
inactiveTrackColor: darkColorScheme.secondaryContainer),
progressIndicatorTheme: ProgressIndicatorThemeData(
circularTrackColor:
darkColorScheme.secondaryContainer.withOpacity(0.8))),
Expand Down
13 changes: 10 additions & 3 deletions lib/player/views/components/system_setting_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,20 @@ class SystemSettingsSlider extends StatelessWidget {
children: [
Expanded(
child: FractionallySizedBox(
alignment: Alignment.bottomCenter,
widthFactor: 0.5,
heightFactor: value,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: colors.primary),
color: colors.primary.withOpacity(0.1)),
child: FractionallySizedBox(
alignment: Alignment.bottomCenter,
heightFactor: value,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: colors.primary),
),
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: clipious
version: 1.22.0+4063
version: 1.22.1+4064
publish_to: none
description: Client for invidious.
environment:
Expand Down

0 comments on commit b8fafaf

Please sign in to comment.