From 0c06f10898878764268240137eb4eadd2193d49e Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 28 Sep 2023 19:27:57 +0200 Subject: [PATCH] fix: color of status and navigation bar --- .../main/java/app/suhasdissa/mellowmusic/ui/theme/Theme.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/suhasdissa/mellowmusic/ui/theme/Theme.kt b/app/src/main/java/app/suhasdissa/mellowmusic/ui/theme/Theme.kt index e8c2c195..78c64800 100644 --- a/app/src/main/java/app/suhasdissa/mellowmusic/ui/theme/Theme.kt +++ b/app/src/main/java/app/suhasdissa/mellowmusic/ui/theme/Theme.kt @@ -57,8 +57,9 @@ fun LibreMusicTheme( if (!view.isInEditMode) { SideEffect { val window = (view.context as Activity).window - window.statusBarColor = colorScheme.primary.toArgb() - WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme + window.statusBarColor = colorScheme.background.toArgb() + window.navigationBarColor = colorScheme.background.toArgb() + WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme } }