From be0fc403d807bca0556e46d18193ca5e7e72de39 Mon Sep 17 00:00:00 2001 From: Putu Prema Date: Fri, 27 Mar 2026 21:21:43 +0700 Subject: [PATCH] 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 --- mobile/lib/theme/dynamic_theme.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) {