niccokunzmann / open-web-calendar

Embed a highly customizable web calendar into your website using ICal source links
https://open-web-calendar.quelltext.eu
GNU General Public License v2.0
202 stars 65 forks source link

Change event colors to match Google Calendar colors #376

Closed Creasiion closed 3 months ago

Creasiion commented 3 months ago

I was just wondering if there was a customizable feature to display our event colors. All of my events are under the same Gcalendar, but I changed their event color to organize them (i.e. red for due dates, blue for work). Here is an example of what I mean, They're not different calendars, just different event colors, other than mother's day ofc. image


We're using Polar.sh so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work.

Fund with Polar

niccokunzmann commented 3 months ago

Hi, could you attach the ICS file, too?

Creasiion commented 3 months ago

Hi, could you attach the ICS file, too?

It won't let me attach the .ics file, can I email it to you?

niccokunzmann commented 3 months ago

Ah yes, you can email me. I have to rename them to .txt at the end.

Creasiion commented 3 months ago

Alright I sent you the email with the .ics

niccokunzmann commented 3 months ago

@Creasiion I am sorry but I did not receive an email. Could you copy the file content into a comment or attach it with .txt at the end?

Creasiion commented 3 months ago

@Creasiion I am sorry but I did not receive an email. Could you copy the file content into a comment or attach it with .txt at the end?

Ahh alright! I made a test calendar (privacy reason) only for May 19th-25th. Here is what it looks like by itself on Google Calendar. Pastel Blue_64aa3687bd57c515f1ab201109a6e50dce8fd9259dcc05c4d0a757d87fb2d3d1@group.calendar.google.com.txt

Screenshot 2024-05-24 at 12 32 58 PM
niccokunzmann commented 3 months ago

When I look at the export, the events do not contain colors. Google does not share this freely.

BEGIN:VEVENT
DTSTART:20240522T140000Z
DTEND:20240522T170000Z
DTSTAMP:20240524T193024Z
UID:45t795esgjgteuul238laemjhf@google.com
CREATED:20240524T192725Z
LAST-MODIFIED:20240524T192725Z
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:TEST COLOR3
TRANSP:OPAQUE
END:VEVENT

The course of action here is to petition Google to export this. While you might face structural ignorance, it is still worth doing.

If you like to create a similar result, you could use categories/tags. They can be colored. A hoster with less market power might also treat matters of cooperation/interoperability as more important and within their business model. I would like to express my sadness, too. Seeing it plausable that your freedom of expression might become victim of a power imbalance here. And wish you well in this struggle to liberate your data from a company who might treat it as theirs. Let me know if I can be of any help.

niccokunzmann commented 3 months ago

The only thing I can offer here for now is using tags: https://open-web-calendar.quelltext.eu/templates/

niccokunzmann commented 3 months ago

I am sorry that I cannot help with this for now as Google does not reveal which colours it uses. I will close this for now but feel free to continue to comment or open it again.