ICM_ListCustomColors: refactoring