Added ability to set text colour for selected segment