It also works on materials assigned to a Image on widgets. And to my surprise, you do not need to create them as dynamic material instances on the constructor:
If you wish to highlight the widget like so: