diff --git a/app/src/main/kotlin/me/nanova/subspace/ui/theme/Theme.kt b/app/src/main/kotlin/me/nanova/subspace/ui/theme/Theme.kt index 0c9498a..163fbfe 100644 --- a/app/src/main/kotlin/me/nanova/subspace/ui/theme/Theme.kt +++ b/app/src/main/kotlin/me/nanova/subspace/ui/theme/Theme.kt @@ -1,6 +1,5 @@ package me.nanova.subspace.ui.theme -import android.app.Activity import android.os.Build import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme @@ -10,12 +9,8 @@ import androidx.compose.material3.dynamicLightColorScheme import androidx.compose.material3.lightColorScheme import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable -import androidx.compose.runtime.SideEffect import androidx.compose.ui.graphics.Color -import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.platform.LocalContext -import androidx.compose.ui.platform.LocalView -import androidx.core.view.WindowCompat private val lightScheme = lightColorScheme( primary = primaryLight, @@ -253,10 +248,6 @@ data class ColorFamily( val onColorContainer: Color ) -val unspecified_scheme = ColorFamily( - Color.Unspecified, Color.Unspecified, Color.Unspecified, Color.Unspecified -) - @Composable fun Theme( darkTheme: Boolean = isSystemInDarkTheme(), @@ -273,14 +264,6 @@ fun Theme( darkTheme -> darkScheme else -> lightScheme } - val view = LocalView.current - if (!view.isInEditMode) { - SideEffect { - val window = (view.context as Activity).window - window.statusBarColor = colorScheme.primary.toArgb() - WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme - } - } MaterialTheme( colorScheme = colorScheme,