1616
1717package com.example.reply.ui.theme
1818
19- import android.app.Activity
2019import android.os.Build
2120import androidx.compose.foundation.isSystemInDarkTheme
2221import androidx.compose.material3.MaterialTheme
@@ -25,11 +24,7 @@ import androidx.compose.material3.dynamicDarkColorScheme
2524import androidx.compose.material3.dynamicLightColorScheme
2625import androidx.compose.material3.lightColorScheme
2726import androidx.compose.runtime.Composable
28- import androidx.compose.runtime.SideEffect
29- import androidx.compose.ui.graphics.toArgb
3027import androidx.compose.ui.platform.LocalContext
31- import androidx.compose.ui.platform.LocalView
32- import androidx.core.view.WindowCompat
3328
3429private val LightColorScheme = lightColorScheme(
3530 primary = md_theme_light_primary,
@@ -114,14 +109,6 @@ fun ReplyTheme(
114109 darkTheme -> DarkColorScheme
115110 else -> LightColorScheme
116111 }
117- val view = LocalView .current
118- if (! view.isInEditMode) {
119- SideEffect {
120- val window = (view.context as Activity ).window
121- window.statusBarColor = colorScheme.primary.toArgb()
122- WindowCompat .getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme
123- }
124- }
125112
126113 MaterialTheme (
127114 colorScheme = colorScheme,
0 commit comments