change item text color after type switch.