Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): mismatch between system and app color when using low-chroma system color scheme (#27282)

Putu Premabe0fc403d807
diff --git a/mobile/lib/theme/dynamic_theme.dart b/mobile/lib/theme/dynamic_theme.dart
index d0cb8e646f..7f7c4d05d7 100644
--- a/mobile/lib/theme/dynamic_theme.dart
+++ b/mobile/lib/theme/dynamic_theme.dart
@@ -19,8 +19,16 @@ abstract final class DynamicTheme {
// Some palettes do not generate surface container colors accurately,
// so we regenerate all colors using the primary color
_theme = ImmichTheme(
- light: ColorScheme.fromSeed(seedColor: primaryColor, brightness: Brightness.light),
- dark: ColorScheme.fromSeed(seedColor: primaryColor, brightness: Brightness.dark),
+ light: ColorScheme.fromSeed(
+ seedColor: primaryColor,
+ brightness: Brightness.light,
+ dynamicSchemeVariant: DynamicSchemeVariant.fidelity,
+ ),
+ dark: ColorScheme.fromSeed(
+ seedColor: primaryColor,
+ brightness: Brightness.dark,
+ dynamicSchemeVariant: DynamicSchemeVariant.fidelity,
+ ),
);
}
} catch (error) {