mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix: dark mode appbar color (#24976)
* fix: dark mode appbar color * update: using scrolledUnderElevation for sufaceTint change --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
15224a9ac5
commit
ed9448a6ee
2 changed files with 5 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ ThemeData getThemeData({required ColorScheme colorScheme, required Locale locale
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
),
|
),
|
||||||
backgroundColor: isDark ? colorScheme.surfaceContainer : colorScheme.surface,
|
backgroundColor: colorScheme.surface,
|
||||||
foregroundColor: colorScheme.primary,
|
foregroundColor: colorScheme.primary,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
scrolledUnderElevation: 0,
|
scrolledUnderElevation: 0,
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,10 @@ class ImmichSliverAppBar extends ConsumerWidget {
|
||||||
duration: Durations.medium1,
|
duration: Durations.medium1,
|
||||||
opacity: isMultiSelectEnabled ? 0 : 1,
|
opacity: isMultiSelectEnabled ? 0 : 1,
|
||||||
sliver: SliverAppBar(
|
sliver: SliverAppBar(
|
||||||
|
backgroundColor: context.colorScheme.surface,
|
||||||
|
surfaceTintColor: context.colorScheme.surfaceTint,
|
||||||
|
elevation: 0,
|
||||||
|
scrolledUnderElevation: 1.0,
|
||||||
floating: floating,
|
floating: floating,
|
||||||
pinned: pinned,
|
pinned: pinned,
|
||||||
snap: snap,
|
snap: snap,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue