diff --git a/lib/components/Player/PlayerView.dart b/lib/components/Player/PlayerView.dart index 6836f057..586f039b 100644 --- a/lib/components/Player/PlayerView.dart +++ b/lib/components/Player/PlayerView.dart @@ -54,23 +54,22 @@ class PlayerView extends HookConsumerWidget { noSetBGColor: true, ); - return SafeArea( - child: Scaffold( - // backgroundColor: paletteColor.color, - body: Container( - decoration: BoxDecoration( - image: DecorationImage( - image: CachedNetworkImageProvider( - albumArt, - cacheKey: albumArt, - ), - fit: BoxFit.cover, + return Scaffold( + body: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: CachedNetworkImageProvider( + albumArt, + cacheKey: albumArt, ), + fit: BoxFit.cover, ), - child: BackdropFilter( - filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15), - child: Container( - color: paletteColor.color.withOpacity(.5), + ), + child: BackdropFilter( + filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15), + child: Container( + color: paletteColor.color.withOpacity(.5), + child: SafeArea( child: Column( children: [ PageWindowTitleBar( diff --git a/lib/hooks/useCustomStatusBarColor.dart b/lib/hooks/useCustomStatusBarColor.dart index 79fba905..fab36b32 100644 --- a/lib/hooks/useCustomStatusBarColor.dart +++ b/lib/hooks/useCustomStatusBarColor.dart @@ -11,8 +11,7 @@ void useCustomStatusBarColor( final backgroundColor = Theme.of(context).backgroundColor; resetStatusbar() => SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle( - statusBarColor: - !noSetBGColor ? backgroundColor : null, // status bar color + statusBarColor: backgroundColor, // status bar color statusBarIconBrightness: backgroundColor.computeLuminance() > 0.179 ? Brightness.dark : Brightness.light, @@ -25,7 +24,8 @@ void useCustomStatusBarColor( if (isCurrentRoute && statusBarColor != color) { SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle( - statusBarColor: color, // status bar color + statusBarColor: + noSetBGColor ? Colors.transparent : color, // status bar color statusBarIconBrightness: color.computeLuminance() > 0.179 ? Brightness.dark : Brightness.light,