Set item text color function