Read the statement by Michael Teeuw here.
MMM-Calendar Ext2 google calendar colors
-
Is it possible to have the same color as set in my google calendar in MMM-Calendar Ext2.
As of now it´s all showing the same color for an event. Even when i change the color in my google calendar still doesn´t change in mm.Or could i have words that would prompt another color in my calendar depending on the word in the calendar?
example:
Work would always show as blue
Holiday would show as yellow.Or names.
Without creating extra calendars. Today i have a family calendar that i would like to have the different colors that we are using or the words showing up as differnt colors.
-
-
Impossible to inherit Google’s colour setting (The event itself has no information about how it shows in Google calendar)
-
You can
transformyour event to get a different CSS className by the condition of events.
See theSort, Filter, Transformparts of MMM-CalendarExt2 documents.
-
-
@MMRIZE thanks i try that.
-
@MMRIZE thanks for helping me in the right direction. This worked for me
In config.js
Under views:transform: function(event) { if (event.title.search("Holiday") > -1) { event.className = "Holiday"; } else if(event.title.search("Work") > -1) { event.className = "Work" } return event; }, },In the custom.css
.CX2 .Holiday.fullday { background-color:rgba(0,0,255); color:#000; } .CX2 .Work.fullday { background-color:rgba(0,128,128); color:#000; -
@fedale always put your code or config or css entries in a code wrapper
paste, select the text you just pasted
and hit the </> button above the edit windowfixed for u this time
-
@sdetweil Sorry about that, thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login