Icon buttons now appear in grayscale when they are deactivated

I have added a nice little improvement to the user interface: icon buttons turn into grayscale when they are deactivated, thus providing an obvious visual clue and also some feedback to the user.

Also added a commit that should fix issue #1505.