A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
C
Offline
Posts
-
RE: Regions
-
RE: MMM-CalendarEXT2 - Event color changes
@suspect24 There are a couple ways to make the change.
Are you trying to change all the entries from a specific calendar? If you are you want to assign a className to the calendar and then use that className in the custom.css file.
Here is an example:
calendars: [ { name: "MHS Softball", url: "https://calendar.google.com/calendar/ical/example.ics", className: "cal_mhs_softball", },
Then in the custom.css file you would include the entry to change the background color of the specified className. Like this:
.CX2 .event.cal_mhs_softball { background-color:rgba(128,0,0,1); }
I have also successfully used the transform function to search the Title of an event for a specific keyword. Once found I assign an event.className to that event. Then in the custom.css file I can change the background color for that specific event className.