mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 01:07:46 +00:00
Several callers pass Color.Transparent as the rich-text backgroundColor. getGradient was copying that color and forcing alpha=1, which produced opaque black (Color(0,0,0,1)) as the gradient end — so on a light theme the fade behind the "Show more" button looked pitch black. Fall back to MaterialTheme.colorScheme.background when the supplied background has alpha 0, so the gradient fades from transparent into the actual surface color.