You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To generate a custom ColorScheme you simply need to call dynamicColorScheme() with your target seed color:
@Composable
fun MyTheme(
seedColor: Color,
useDarkTheme: Boolean = isSystemInDarkTheme(),
content: @Composable () -> Unit
) {
val colorScheme = rememberDynamicColorScheme(seedColor, useDarkTheme)
MaterialTheme(
colors = colorScheme.toMaterialColors(),
content = content
)
}
No value passed for parameter 'isAmoled'.
Unresolved reference 'toMaterialColors'.
I changed it to this, but I'm not sure the implications.
Also I'm not sure how to work with it, I guess I will need to set each control color in runtime with attributes of this new theme? I don't have composable controls only views from xml layout.
How will I handle night mode changes? I currently use Material3 theme daynight which takes care of it and supports a dynamiccolor.
No value passed for parameter 'isAmoled'.
Unresolved reference 'toMaterialColors'.
I changed it to this, but I'm not sure the implications.
The text was updated successfully, but these errors were encountered: