Assign Color to event or auto color based on event type.

Hi, i’m using the Scheduler with mysql database to manage event and event type. How in lightbox popup when adding a new event could I assign a color to that event. Or maybe if I select lets say wedding as type, to be red automatically instead of the default color.
tks
seby.