[DF-5048] improve color delegate. fix UpdateLayout method.