Changing button colors when clicked

This method is one way to toggle a button state: How to make a Single Toggle Button