Read the statement by Michael Teeuw here.
Changing the icon for only one calendar
-
Hello,
I am using the default calendar module which comes with the Magic Mirror.
Thus far I am pretty happy with how it works.I have manged to get several ics files sync’d in and colour coded.
However, I would like to change the icon for on of the calendars to one not available on http://fontawesome.io/icons/
Ideally, it would be a file I could store locally on the RaspberryPi
This is what the config.js file looks like currently for the calendar:{ module: "calendar", header: "Gavin's Calendars", position: "top_left", config: { colored: true, coloredSymbolOnly: true, calendars: [ { symbol: "calendar-check", dateFormat: "Do MMM", color: "#E51B00", url: "calendarlink01.ics"}, { symbol: "calendar-alt", dateFormat: "Do MMM", color: "#1073BC", url: "calendarlink02.ics"}, { symbol: "calendar-plus", dateFormat: "Do MMM", color: "#27A86C", url: "calendarlink03.ics"} ] } },
If I understand correctly, this will require some kind of custom CSS, would appreciate any guidance provided.
-
@Vengeance u can specify the symbolClass in the calendar entry too
symbolClass:“foobar”,then in the css
.calendar .foobar { ????? whatever u need }
-
Thanks @sdetweil
I actually managed to just store the icons in the root dir for the module and change the .js for the module to look for the new file name.Now the issue I have is that .mov doesnt seem to work for icons. ( I tested with other file types to confirm the “change” worked, do now I know its just a file type issue)
-
-
Hi,
I’m new on the forum and new on MM dev.
I have a little question : could we have different colors in the calendar (I use default module, with a google calendar) like in the web version ?Because I made a custom CSS
body { } /* * CALENDAR SPECIFIC */ .fa.fa-calendar-check { color: #2B60DE; /* Dodger Blue */ } div.CALEXT .tableStyle .eventTime { display:block; }
And all my pictures are blue but I would like to have this picture at the same color like my web version like this example
Is it possible ?Thank you and congrats for your work
-
@gubastide sure… did u read the config for the calendar in the link from the readme?
-
@sdetweil Yes but I don’t understand how to make this …
And English is difficult to me (I’m French) …
Is there any solution for my problem ?
Thank you