Gray out icon in combat

Are there any variables to set an icon to gray out in combat. Have to choose a custom icon for my mounts, just want to stop screwing with my brain that it’s a working button when I can’t use it =P

Not combat specific but: