Adding color to each event type in Calendar


I am trying to add color to different event types on the calendar. I have added a new property "Eventtype" in the Calendar- Add/Edit Event widget. However I am not able to extract the select field type in the Calendar- Event widget. I am attaching pictures of where I have changed the code.

when I try event.EventType I don't get any result.