set line color corresponding to the status.