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

use DynamicSchemeVariant.fidelity to preserve low-chroma system color scheme as the app color
This commit is contained in:
Putu Prema 2026-03-27 21:21:43 +07:00 committed by GitHub
parent c13fd9e4b5
commit be0fc403d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {