Enable materialYou theme usage.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -78,11 +78,16 @@ fun AppTheme(
|
|||||||
useDarkTheme: Boolean = isSystemInDarkTheme(),
|
useDarkTheme: Boolean = isSystemInDarkTheme(),
|
||||||
content: @Composable() () -> Unit
|
content: @Composable() () -> Unit
|
||||||
) {
|
) {
|
||||||
val colors = if (!useDarkTheme) {
|
|
||||||
LightColors
|
val dynamicColor = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
|
||||||
} else {
|
|
||||||
DarkColors
|
val colors = when {
|
||||||
}
|
dynamicColor && useDarkTheme - > dynamicDarkColorScheme(LocalContext.current)
|
||||||
|
dynamicColor && !useDarkTheme - > dynamicLightColorScheme(LocalContext.current)
|
||||||
|
darkTheme - > DarkColors
|
||||||
|
else - > LightColors
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
MaterialTheme(
|
MaterialTheme(
|
||||||
colorScheme = colors,
|
colorScheme = colors,
|
||||||
|
|||||||
Reference in New Issue
Block a user