Fix: Make it easier to tell if Color Swatches are greyed out or not
authorJoshua Leung <aligorith@gmail.com>
Mon, 18 Apr 2016 12:42:59 +0000 (00:42 +1200)
committerJoshua Leung <aligorith@gmail.com>
Mon, 18 Apr 2016 12:42:59 +0000 (00:42 +1200)
commitc42a796e9ff06d365ae2b41cd122e4bce026bf35
treefa89b93ab91b60c3bd8d3db6adfd20e921ca87cf
parent2aafadd4acbd6741f4ba0a98dda7b59ef9eb951d
Fix: Make it easier to tell if Color Swatches are greyed out or not

This commit makes disabled/inactive color swatches look more obviously disabled
by halving their alpha values. It is necessary because the results of
ui_widget_color_disabled() (which is usually used when disabling widgets)
get overwritten by the color filling code here.

To avoid confusion, the checkerboard background (when the color genuinely has
alpha) will still only show in those cases. That is, when disabled, color swatches
won't show the checkerboard unless the color actually has an alpha component if it
wasn't disabled.
source/blender/editors/interface/interface_widgets.c