Adds cross platform setTextColor function