mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
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:
@@ -19,8 +19,16 @@ abstract final class DynamicTheme {
|
|||||||
// Some palettes do not generate surface container colors accurately,
|
// Some palettes do not generate surface container colors accurately,
|
||||||
// so we regenerate all colors using the primary color
|
// so we regenerate all colors using the primary color
|
||||||
_theme = ImmichTheme(
|
_theme = ImmichTheme(
|
||||||
light: ColorScheme.fromSeed(seedColor: primaryColor, brightness: Brightness.light),
|
light: ColorScheme.fromSeed(
|
||||||
dark: ColorScheme.fromSeed(seedColor: primaryColor, brightness: Brightness.dark),
|
seedColor: primaryColor,
|
||||||
|
brightness: Brightness.light,
|
||||||
|
dynamicSchemeVariant: DynamicSchemeVariant.fidelity,
|
||||||
|
),
|
||||||
|
dark: ColorScheme.fromSeed(
|
||||||
|
seedColor: primaryColor,
|
||||||
|
brightness: Brightness.dark,
|
||||||
|
dynamicSchemeVariant: DynamicSchemeVariant.fidelity,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user