Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i set the color for ics event?

From my application i want to send email with ICS event attachment to my customers. I have successfully send mail with .ics file. Now my customers want to display .ics event with some color. Is there any way to add color attribute into .ics file.Please refer my .ics file which was i send

BEGIN:VCALENDAR
PRODID:-//Events Calendar//iCal4j 1.0//EN
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20131125T062336Z
DTSTART:20131125T143000
DTEND:20131125T150000
SUMMARY:Pro-Lakshman Pro-Single Lesson 30 mins
TZID:Asia/Kolkata
UID:20131125T062337Z-uidGen@Lakshmanan
ORGANIZER;ROLE=REQ-PARTICIPANT;CN=Lakshman:mailto:[email protected]
ATTENDEE;ROLE=REQ-PARTICIPANT;CN=Karthik:mailto:[email protected]
END:VEVENT
END:VCALENDAR
like image 606
user2248214 Avatar asked Nov 25 '13 10:11

user2248214


People also ask

Can you color code events in Outlook Calendar?

Outlook supports color-coding by allowing me to set up categories for my meetings and events. I can use the Categorize dropdown to select an existing category or create a new one. Adding a color to each category ensures my meetings and appointments are shaded consistently.

How do I change the color of an event in Google Calendar?

Change color for all events in a calendar:On the left under My calendars, point to the calendar. Click More. and select a color or click Add. to choose a custom color.


2 Answers

No. the iCalendar format does not include any color or styling cues.

like image 92
Colin Pickard Avatar answered Sep 22 '22 06:09

Colin Pickard


It is possible. You can use the pre-defined Outlook categories to show the schedule in different colors. Usually Outlook uses category names like "Orange Category", or "Red Category".

So if you add this to your ICS event you can see it in an orange color:

CATEGORIES:Orange Category

Of course, it only works on MS Outlook clients.

like image 23
Sebastian Avatar answered Sep 19 '22 06:09

Sebastian