mrvladus / Errands

Todo application for those who prefer simplicity.
MIT License
299 stars 67 forks source link

No Task colors in export #262

Closed ColbyB722 closed 5 months ago

ColbyB722 commented 5 months ago

Hello Mrvladus, please add the colors of tasks to the export.ics file.

I had thought the colors of tasks seemed to disappear when imported but they were not included in the export file.

And thanks for the awesome work you do on this program!

32GBRat commented 5 months ago

This is technically possible.

ICS specification does support COLOR property (added in 2016) although the usage is limited. The problem is that colors must be selected from the CSS3 set of names (defined in section 4.3 here) which narrows selection of colors a lot. That shouldn't be a problem now since the app supports only a handful of colors but could become one if this functionality has to be extended.

It also has to be noted that support of this property from other apps isn't great.

Personally, I don't see a problem in this being implemented if there is a will for someone to implement it and for the author to merge it.

mrvladus commented 5 months ago

Added in 8975220ffef49a7b508511fd2bd011d06e5b6b8b. But colors only will be visible to Errands, because it's custom property X-ERRANDS-COLOR. There is also X-APPLE-CALENDAR-COLOR for task lits that Nextcloud supports, but it's using HEX colors, while I just use 7 hard-coded color names. I need to figure that out for task lists. Until then custom propery will do fine.