refactor(mobile): video controls (#14086)

* refactor video controls

* inline

* make mute icon const

* move placeholder to private widget

* adjust text width, move volume button slightly right
This commit is contained in:
Mert 2024-11-13 01:13:21 -05:00 committed by GitHub
parent 53a7ac3868
commit e1feba2198
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 168 additions and 113 deletions

View file

@ -7,10 +7,10 @@ import 'package:immich_mobile/providers/app_settings.provider.dart';
import 'package:immich_mobile/services/app_settings.service.dart';
class ImmichTheme {
ColorScheme light;
ColorScheme dark;
final ColorScheme light;
final ColorScheme dark;
ImmichTheme({required this.light, required this.dark});
const ImmichTheme({required this.light, required this.dark});
}
ImmichTheme? _immichDynamicTheme;
@ -151,7 +151,7 @@ ThemeData getThemeData({required ColorScheme colorScheme}) {
return ThemeData(
useMaterial3: true,
brightness: isDark ? Brightness.dark : Brightness.light,
brightness: colorScheme.brightness,
colorScheme: colorScheme,
primaryColor: primaryColor,
hintColor: colorScheme.onSurfaceSecondary,