From ed9448a6eebceb1a87ab137ae76f24165ad5ed8c Mon Sep 17 00:00:00 2001 From: Akash Karmakar <124440261+akashKarmakar02@users.noreply.github.com> Date: Wed, 14 Jan 2026 23:17:34 +0530 Subject: [PATCH] fix: dark mode appbar color (#24976) * fix: dark mode appbar color * update: using scrolledUnderElevation for sufaceTint change --------- Co-authored-by: Alex --- mobile/lib/theme/theme_data.dart | 2 +- mobile/lib/widgets/common/immich_sliver_app_bar.dart | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/lib/theme/theme_data.dart b/mobile/lib/theme/theme_data.dart index 006dfb97ec..2a6ca3a8da 100644 --- a/mobile/lib/theme/theme_data.dart +++ b/mobile/lib/theme/theme_data.dart @@ -40,7 +40,7 @@ ThemeData getThemeData({required ColorScheme colorScheme, required Locale locale fontWeight: FontWeight.w600, fontSize: 18, ), - backgroundColor: isDark ? colorScheme.surfaceContainer : colorScheme.surface, + backgroundColor: colorScheme.surface, foregroundColor: colorScheme.primary, elevation: 0, scrolledUnderElevation: 0, diff --git a/mobile/lib/widgets/common/immich_sliver_app_bar.dart b/mobile/lib/widgets/common/immich_sliver_app_bar.dart index dd985ebfe2..4278dfa29d 100644 --- a/mobile/lib/widgets/common/immich_sliver_app_bar.dart +++ b/mobile/lib/widgets/common/immich_sliver_app_bar.dart @@ -50,6 +50,10 @@ class ImmichSliverAppBar extends ConsumerWidget { duration: Durations.medium1, opacity: isMultiSelectEnabled ? 0 : 1, sliver: SliverAppBar( + backgroundColor: context.colorScheme.surface, + surfaceTintColor: context.colorScheme.surfaceTint, + elevation: 0, + scrolledUnderElevation: 1.0, floating: floating, pinned: pinned, snap: snap,