From e4406b29660f77cca3d6bbfd76eb21d95163c998 Mon Sep 17 00:00:00 2001 From: Infi Date: Fri, 4 Oct 2024 19:19:39 +0200 Subject: [PATCH] fix: non translucent status bar due to sdk example code Signed-off-by: Infi --- app/src/main/java/chat/revolt/ui/theme/Theme.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/chat/revolt/ui/theme/Theme.kt b/app/src/main/java/chat/revolt/ui/theme/Theme.kt index 2e622f2b..f8a18ab2 100644 --- a/app/src/main/java/chat/revolt/ui/theme/Theme.kt +++ b/app/src/main/java/chat/revolt/ui/theme/Theme.kt @@ -122,7 +122,7 @@ fun getColorScheme( if (!view.isInEditMode) { SideEffect { val window = (view.context as Activity).window - window.statusBarColor = colorScheme.background.toArgb() + window.statusBarColor = Color.Transparent.toArgb() @Suppress("DEPRECATION") ViewCompat.getWindowInsetsController(view)?.isAppearanceLightStatusBars = !colorSchemeIsDark