Set background color for rows based on ratings