automatically choose button color based on contrast
clear unneeded color definitions
Merge pull request #889 from xi/feature-button-auto-contrast

automatically choose button color based on contrast