File tree Expand file tree Collapse file tree
quickedit/src/main/java/com/abizer_r/quickedit/theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,9 +55,14 @@ fun QuickEditTheme(
5555 if (! view.isInEditMode) {
5656 SideEffect {
5757 val window = (view.context as Activity ).window
58- window.statusBarColor = Color .Black .toArgb()
59- window.navigationBarColor = Color .Black .toArgb()
60- WindowCompat .getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme
58+ window.statusBarColor = Color .Transparent .toArgb()
59+ window.navigationBarColor = Color .Transparent .toArgb()
60+
61+ val controller = WindowCompat .getInsetsController(window, view)
62+ controller.isAppearanceLightStatusBars = ! darkTheme
63+ controller.isAppearanceLightNavigationBars = ! darkTheme
64+
65+ if (Build .VERSION .SDK_INT >= 29 ) window.isNavigationBarContrastEnforced = false
6166 }
6267 }
6368
You can’t perform that action at this time.
0 commit comments