Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some ui issues #608

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading