Question about event colors in Google Calendar

497 views
Skip to first unread message

UUCP Tech

unread,
Jan 23, 2023, 1:56:15 PM1/23/23
to GAM for Google Workspace
_____
Event colors

The event color grid presented in calendar.google.com and <EventColorIndex> are related like this:

11:tomato 4:flamingo 6:tangerine 5:banana 2:sage 10:basil 7:peacock 9:blueberry 1:lavender 3:grape 8:graphite
_____

But I see 24 colors in my Google Calendars. And for example, when I inspect the code, it says that data-color-index for "Graphite" is 85.

<div jsname="Ly0WL" jsaction="click:rhcxd; keydown:Hq2uPe; focus:htbtNd" tabindex="0" role="menuitem" class="bcSKBf xSrKnf pka1xd" data-color="#616161" style="background-color: rgb(97, 97, 97);" data-color-index="85" aria-label="Graphite, set calendar color"><i class="google-material-icons meh4fc hggPq Nh4qkc M8B6kc" aria-hidden="true">bigtop_done</i><div class="oMnJrf" aria-hidden="true" jscontroller="eg8UTd" jsaction="focus: eGiyHb;mouseenter: eGiyHb; touchstart: eGiyHb" data-text="Graphite" data-tooltip-position="top" data-tooltip-vertical-offset="0" data-tooltip-horizontal-offset="0" data-tooltip-only-if-necessary="false"></div></div>

Is the documentation based on a previous version of Google Calendars? Or am I just (once again) missing something that should be obvious?

Thanks!




Ross Scroggs

unread,
Jan 23, 2023, 2:06:34 PM1/23/23
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Calendars#calendar-colors
This is the 24 element color to id map for calendars.

This is the 11 element color to id map for events.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e913966f-77c1-4e0d-9a30-e15113b8b63dn%40googlegroups.com.


--

UUCP Tech

unread,
Jan 23, 2023, 2:42:13 PM1/23/23
to google-ap...@googlegroups.com
So, basically, yes, I was missing something obvious (again).

Thanks, Ross!



You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/D9dzhv1rn8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS8F3qRPQZ5eNKkMEzq6dCJBdRgfC_umLZy9rsdN7OEERw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages