fix: non translucent status bar due to sdk example code
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
eeaf06d4ba
commit
e4406b2966
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue