fix: non translucent status bar due to sdk example code

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-10-04 19:19:39 +02:00
parent eeaf06d4ba
commit e4406b2966
1 changed files with 1 additions and 1 deletions

View File

@ -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