The problem is the new color theme updated from material Theme builder doesn't make changes to the app.
the issue lie in theme building function ->
fun AppTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = true,
content: @Composable () -> Unit
) {
val colorScheme = when {
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
darkTheme -> darkScheme
else -> lightScheme
}
due to the darkTheme and dynamicColor the changes made in theme color doesn't apply to the app
if the darktheme and dynamic color is made false the applied colors comes
but since the functionality is quite important in some apps
it would nice if u rectify this issue
see the above the set colors are different from the app colors
The problem is the new color theme updated from material Theme builder doesn't make changes to the app. the issue lie in theme building function ->
fun AppTheme( darkTheme: Boolean = isSystemInDarkTheme(), // Dynamic color is available on Android 12+ dynamicColor: Boolean = true, content: @Composable () -> Unit ) { val colorScheme = when { dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { val context = LocalContext.current if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) }
due to the darkTheme and dynamicColor the changes made in theme color doesn't apply to the app
if the darktheme and dynamic color is made false the applied colors comes
but since the functionality is quite important in some apps it would nice if u rectify this issue
see the above the set colors are different from the app colors