Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you use modify the color definitions for a Google Calendar to allow custom colors for events?

I'm using the Google Calendar API to create new events. It appears the only method to assign a color to an event is with a colorID (1 to 11) that looks up the specific color from the table.

The default 11 color palette isn't exactly ideal for my needs so I would like to change it but I haven't been able to figure out how. The documentation explains how to obtain these lookup tables and but I can't figure out how to modify them. I assume they can be modified as there is a timestamp in the structure for the last time it was modified.

Anybody know how to modify the colorID table for events?

like image 906
Wescotte Avatar asked Aug 14 '13 17:08

Wescotte


1 Answers

I know this thread is old, but the answer to the question is that you can't edit the set Event colors. The new custom colors in the new API only correlate with the Calendar color itself, not the Events contained within.

Why Google would only make some of the colors customizable, and not all beats me. Until they realize the desire for more colors it would appear we are stuck with good ol' 1-11.

like image 144
Tronald Avatar answered Nov 15 '22 22:11

Tronald