Skip to content

Commit 795b7f4

Browse files
committed
style: ensure status bar is white in light mode and matches background in dark mode
1 parent 5af4f75 commit 795b7f4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • android/app/src/main/java/com/httpsms/ui/theme

android/app/src/main/java/com/httpsms/ui/theme/Theme.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,8 @@ fun HttpSmsTheme(
6262
if (!view.isInEditMode) {
6363
SideEffect {
6464
val window = (view.context as Activity).window
65-
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
66-
window.statusBarColor = if (darkTheme) Color.Black.toArgb() else LogoGreen.toArgb()
67-
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = false
68-
} else {
69-
window.statusBarColor = colorScheme.primary.toArgb()
70-
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
71-
}
65+
window.statusBarColor = colorScheme.background.toArgb()
66+
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
7267
}
7368
}
7469

0 commit comments

Comments
 (0)