Here is the background of my requirement:
I’ve some sanity checks which are run on design to make sure some guidelines are followed.(Eg: design should not have any bi-directional pins unless waived..etc.etc.)
I’ve created a custom toolbar icon for sanity check. So,
1) when I open a design, application trigger will run sanity check and change the toolbar icon to ‘red’ or ‘green’ color which indicates last saved design was sanity clean/dirty.
2) Now, the moment I modify the design, I want to toolbar color to “yellow” which indicates that design is modified after last sanity run.
3) Now, if user run the sanity check, it will turn again to “red” or “green” based on design updates.
Here, I’m not able to find how to accomplish task 2)
Thanks a lot in advance for any pointer.