Zoltan Demant
08/09/2023, 9:52 AMdynamicDarkColorScheme
background and surface always identical? Has it always been like this?Zoltan Demant
08/09/2023, 9:56 AMSurface colors define contained areas, distinguishing them from a background and other on-screen elements.This makes me feel like its a bug?
Zoltan Demant
08/09/2023, 10:05 AMsurfaceColorAtElevation
tweaks the surface color based on elevation, but can no longer distinguish it from the background color!Stylianos Gakis
08/09/2023, 10:11 AMsurfaceTint
color instead? https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:tv/tv-ma[…]/material3/ColorScheme.kt;l=507-514?q=surfaceColorAtElevation
The background + surface being the same shouldn’t affect this afaik.
With that said, those two being 100% identical does sound odd, I don’t think that’s considered normal 🤔Zoltan Demant
08/09/2023, 10:18 AMinternal fun ColorScheme.applyTonalElevation(backgroundColor: Color, elevation: Dp): Color {
return if (backgroundColor == surface) {
surfaceColorAtElevation(elevation)
} else {
backgroundColor
}
}
Stylianos Gakis
08/09/2023, 10:21 AMZoltan Demant
08/09/2023, 10:22 AMZoltan Demant
08/09/2023, 10:23 AMStylianos Gakis
08/09/2023, 10:24 AMZoltan Demant
08/09/2023, 10:28 AMZoltan Demant
08/12/2023, 10:20 AMZoltan Demant
09/07/2023, 3:58 AMdynamicLightColorScheme
and dynamicDarkColorScheme
now return higher chroma colors for surface and surfaceContainer
roles. (I5e901) 👀