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: {