From 2350f591318442b8e09098655c7ca7b8f7d144a2 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 6 Feb 2025 13:22:34 +0800 Subject: [PATCH] :lipstick: Transparent app bar with real white --- lib/theme.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/theme.dart b/lib/theme.dart index 33a4391..e3294eb 100644 --- a/lib/theme.dart +++ b/lib/theme.dart @@ -33,7 +33,7 @@ Future createAppTheme( brightness: brightness, ); - final hasAppBarBlurry = prefs.getBool(kAppbarTransparentStoreKey) ?? false; + final hasAppBarTransparent = prefs.getBool(kAppbarTransparentStoreKey) ?? false; final useM3 = useMaterial3 ?? (prefs.getBool(kMaterialYouToggleStoreKey) ?? true); return ThemeData( @@ -51,9 +51,9 @@ Future createAppTheme( ), appBarTheme: AppBarTheme( centerTitle: true, - elevation: hasAppBarBlurry ? 0 : null, - backgroundColor: hasAppBarBlurry ? colorScheme.primary.withOpacity(0.3) : colorScheme.primary, - foregroundColor: hasAppBarBlurry ? colorScheme.onSurface : colorScheme.onPrimary, + elevation: hasAppBarTransparent ? 0 : null, + backgroundColor: hasAppBarTransparent ? Colors.transparent : colorScheme.primary, + foregroundColor: hasAppBarTransparent ? colorScheme.onSurface : colorScheme.onPrimary, ), pageTransitionsTheme: PageTransitionsTheme( builders: {