fix: Make status bar transparent

This commit is contained in:
Ahmad Ansori Palembani 2024-12-27 10:26:23 +07:00
parent 9bb869111d
commit 310e90beb5
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -50,7 +50,7 @@ fun YokaiScaffold(
SideEffect {
val activity = view.context as Activity
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//activity.window.statusBarColor = color.toArgb()
activity.window.statusBarColor = Color.Transparent.toArgb()
WindowInsetsControllerCompat(activity.window, view).isAppearanceLightStatusBars = useDarkIcons
}
}