Skip to content

Commit fa95ae6

Browse files
committed
Set status bar color to theme background and invert isAppearanceLightStatusBars logic
1 parent 38e7199 commit fa95ae6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/src/main/java/com/anysoftkeyboard/janus/app/ui/theme

app/src/main/java/com/anysoftkeyboard/janus/app/ui/theme/JanusTheme.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ fun JanusTheme(
5454
if (!view.isInEditMode) {
5555
SideEffect {
5656
val window = (view.context as Activity).window
57-
window.statusBarColor = colorScheme.primary.toArgb()
58-
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme
57+
window.statusBarColor = colorScheme.background.toArgb()
58+
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
5959
}
6060
}
6161

0 commit comments

Comments
 (0)