This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
package me.zobrist.tichucounter.ui
|
package me.zobrist.tichucounter.ui
|
||||||
|
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
|
|
||||||
val md_theme_light_primary = Color(0xFFBE0034)
|
val md_theme_light_primary = Color(0xFFBE0034)
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
package me.zobrist.tichucounter.ui
|
package me.zobrist.tichucounter.ui
|
||||||
|
|
||||||
|
import android.os.Build
|
||||||
import androidx.compose.foundation.isSystemInDarkTheme
|
import androidx.compose.foundation.isSystemInDarkTheme
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.*
|
||||||
import androidx.compose.material3.lightColorScheme
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.material3.darkColorScheme
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.compose.runtime.*
|
|
||||||
import com.google.accompanist.systemuicontroller.rememberSystemUiController
|
|
||||||
|
|
||||||
|
|
||||||
private val LightColors = lightColorScheme(
|
private val LightColors = lightColorScheme(
|
||||||
@@ -84,7 +83,7 @@ fun AppTheme(
|
|||||||
val colors = when {
|
val colors = when {
|
||||||
dynamicColor && useDarkTheme -> dynamicDarkColorScheme(LocalContext.current)
|
dynamicColor && useDarkTheme -> dynamicDarkColorScheme(LocalContext.current)
|
||||||
dynamicColor && !useDarkTheme -> dynamicLightColorScheme(LocalContext.current)
|
dynamicColor && !useDarkTheme -> dynamicLightColorScheme(LocalContext.current)
|
||||||
darkTheme -> DarkColors
|
useDarkTheme -> DarkColors
|
||||||
else -> LightColors
|
else -> LightColors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user