This question already has an answer here:
Basically I'd like to produce a graphic like this:
That is a rectangle with rounded corners, filled with a color gradient. While
Rectangle offers the
RoundingRadius option that takes care of the round corners, there is no obvious way of getting the color gradient to work. Using
Polygon it's easy to implement the gradient, but I can only think of very messy ways of rounding the corners. Can I have both?
I just found this answer. That's very close to what I want, but that solution doesn't allow for nice edges.