Animated Color Rule swapping

Fixed a bug where swapping rules would mess up the custom color, and
while I was there added a swap animation.