Changing ShapeWidget Colors

I continue to play with the ShapeWidget Example and have come up with an issue that I have not been able to solve.

How do you change the color of the RectangleWidget? I was able to change the color of the EllipseWidget with calls to setColor() on its nested states. That method resulted in changing the color of the resize handles, but not the lines for the RectangleWidget. Is there a better way to do this?

Thanks.

I suspect the circle color may be accessible from the viewWidget instance. @finetjul

Hi @finetjul. Any suggestion for how to change the color of a RectangleWidget or have I stumbled upon a bug? Thanks.

I think I am having the same issue with the paintWidget
I try to change the color with
paintWidget.setColor() but does not seem to work

Indeed,

Color is currently hard coded:

You might want to do the same as what as been done with the spline widget: