Refactored handling of HControl color attributes.