ATFutures / calendar

R interface to iCal (.ics files)
https://atfutures.github.io/calendar/
Other
41 stars 11 forks source link

set `COLOR` property #46

Closed shamindras closed 1 year ago

shamindras commented 1 year ago

Thank you for creating this cool package! I'm planning to use this in the near future.

I was wondering if this package enables one to set the COLOR property for ics files? I could not locate this (relatively new) color field from the examples.

Just wanted to check in case I had missed it in the documentation. If not, are there any possible workarounds to enable this using this package?

mpadge commented 1 year ago

Ping @Robinlovelace

layik commented 1 year ago

Hi @shamindras & hello @mpadge!

I doubt we were thinking about such a specific property (just learned that ics allows this) when developed the package, my thinking is that we were processing the properties not handle specific props.

So, from the docs for ic_event, I can imagine you could use color value too:

ic_event(
 ...
  format = "%Y-%m-%d %H:%M",
  ...
  color="green" 
)

HTH

shamindras commented 1 year ago

Thank you @layik for your helpful suggestion in regards to applying the COLOR property. I will try this out accordingly soon.

If I have any follow up queries, I'll post back here.

layik commented 1 year ago

Please close the ticket when you are happy or even better feel free to send a PR with any possible issue re COLOR or any other prop.

Robinlovelace commented 1 year ago

Great stuff guys, sorry I'm late to the party. I think that fixes it, many thanks Layik, closing for now but feel free to re-open or ask any questions @shamindras.