Get the color of a widget element by line trace (Change widget interaction line color)

Try this:

But I’m not sure if this works with the widget component. I can’t check it now.