to calculate whether the content is high / low contrast, to calculate the correct alpha. This normally isn’t a problem, as the component that draws the background (in this case
Surface
) provides the color, so the alpha can correctly be calculated later.
If you explicitly set
contentColor = Color.White
in
Surface
, this is probably the easiest way, but I agree it is a bit confusing