Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

support per-event colors of CalDAV calendar

Open MyLogins opened this issue 7 years ago • 4 comments

DAVdroid support per-event colors for events (RFC 7986 COLOR) since version 1.7, but unfortunately Simple-Calendar handle all events from a CalDAV calendar as one event type with the same color.

MyLogins avatar Feb 12 '18 16:02 MyLogins

Not only event, but whole calendar color should be taken from CalDAV. Same RFC 7986.

# cat .Radicale.props 
{"tag": "VCALENDAR", "ICAL:calendar-color": "#b7d841ff", "D:displayname": "calendar", "C:supported-calendar-component-set": "VEVENT,VJOURNAL,VTODO"}#

532910 avatar Apr 20 '19 12:04 532910

Hey, is there any plans for this? :)

stavros-k avatar Sep 25 '21 22:09 stavros-k

Adding to this also. I can barely read the text when the colours are so random - if you have more than a couple of calendars, no colour for the background will suit all of them. It's really inaccessible for anyone with sight issues.

Please clarify if you have any plans to implement this, because it's a real deal breaker.

fohfuu avatar Nov 27 '21 03:11 fohfuu

To have multiple color, I create separate calendar in my Nextcloud calendar.

If this issue solved, It means I can use different color types in Simple-Calendar with only one CalDav calendar? I never know it was a thing.

azzamsa avatar Dec 19 '21 03:12 azzamsa

My wife is using per-event colors like crazy, she has her own color scheme for different types of events and their priority (more then 10 colors). I am trying to convice her to use our own calDAV server instead of google calendar. I already managed to import her calendar with all its colors to our calDAV server. But its a no-go for her, that simple-calendar does not show these colors nor is it editable within the event options. There seems to be no other calendar on f-droid supporting this basic feature, so simple calendar with this request is as close at it gets - so I am patient and wait...it is for a good purpose ;)

I use Googles calendar(their calendar not their calendar app) for all my events and tasks. Simple Calendar makes all my events the same color then and I want to be able to color code some of them. Would be a nice feature.

Josh-Reimer avatar Mar 13 '23 01:03 Josh-Reimer

Maybe one day this becomes reality :) That's the only feature I'm missing since years.

Would be really happy about it. Thanks for your work on Simple Calendar.

hackrid avatar Mar 31 '23 09:03 hackrid

Hello! I have uploaded a test APK with support for CalDAV event colors here: https://github.com/Naveen3Singh/Simple-Calendar/releases/download/event_color_test_release/calendar-prepaid-debug.apk If anyone is willing, please check it out and let me know in case of any issues. Alternatively, if you have the skills you can build an APK from this PR: https://github.com/SimpleMobileTools/Simple-Calendar/pull/2041

Thanks!

naveensingh avatar Apr 08 '23 12:04 naveensingh

Nice work @Naveen3Singh! I tested the debug APK you sent. For some reason, it can't change colors in the CalDAV calendar on my nextcloud server (it only shows "Default" in the menu. When I try modifying the colors on a Google calendar, I am allowed to change them. Do you know what might be causing this?

Screenshot_20230408-104245_Calendar_debug Screenshot_20230408-104353_Calendar_debug

Colors on a nextcloud calendar event (left) vs colors from a google calendar event (right)

I also tried viewing events from Nextcloud that I had already created with custom colors, they didn't show up (this is the behavior of the release version as well).

Additionally, something that would be nice to have is if the color got reselected in some way upon opening the color menu for the second time.

Here's a screenshot of a color picker from another app called Iconify that I like a lot, if you're looking for design ideas.

PowerUser64 avatar Apr 08 '23 18:04 PowerUser64

@PowerUser64 does changing colors of DAVx5 calendars work in any other app? If you dont have any other calendar app, would be good if you could test it.

tibbi avatar Apr 08 '23 19:04 tibbi

Thanks for the ideas, @tibbi! I checked DAVx⁵'s calendar settings, and it turns out the options to let apps manage colors were disabled. With these options enabled, I can change event colors in another calendar app, Etar, but when I try changing them with this debug build, the app crashes when I tap the change color button.

DAVx⁵ Settings debug app crashing
the DAVx⁵ settings I changed are the two at the bottom here debug app crashing

I don't know how to get logs from the crash, but I'd be willing to send them if someone tells me how.

PowerUser64 avatar Apr 08 '23 19:04 PowerUser64

@PowerUser64 thanks! I would have tested with Nextcloud but the trial website was down for some reason. I'll try to reproduce and fix this crash.

would be nice to have is if the color got reselected in some way upon opening the color menu

already fixed it in the PR. The release version won't have this issue.

I checked DAVx⁵'s calendar settings, and it turns out the options to let apps manage colors were disabled

@tibbi I think we should simply hide or disable the event color setting in this case, what do you think?

naveensingh avatar Apr 09 '23 10:04 naveensingh

sure, we can hide it. Lets implement the most common usecase first.

tibbi avatar Apr 09 '23 10:04 tibbi

@PowerUser64 updated APK is here: https://github.com/Naveen3Singh/Simple-Calendar/releases/download/event_color_test_release/calendar-prepaid-debug.apk

naveensingh avatar Apr 11 '23 10:04 naveensingh

It all works! 🥳

Thank you so much for taking the time to add this, @Naveen3Singh!

PowerUser64 avatar Apr 11 '23 18:04 PowerUser64

amazing! confirm working on my side, too.

ot: sad to find out colors are not reflected in thunderbird... is anyone of you seeing colors synced to thunderbird?

hackrid avatar Apr 11 '23 20:04 hackrid

@Naveen3Singh Thank you for supporting colors for Caldav!!! I was shocked when I read the change log. I noticed a minor glitch: colors do not seem to show for All-day events on version 6.21.7. Screenshot shown below.

Colors not showing for all day events

Any chance for a fix, or is this just a glitch showing up on my end?

petitengineer avatar Apr 17 '23 01:04 petitengineer

@petitengineer I'll check that and respond soon, thanks!

naveensingh avatar Apr 17 '23 03:04 naveensingh

@petitengineer all day events works perfectly for me. Not sure why it's not working with your setup.

Tested with Google Calendar.

naveensingh avatar Apr 17 '23 06:04 naveensingh

I tested it with my nextcloud setup and I found the same problem. It seems the problem is only with the top bar in the week view that displays all-day events. It displays events from google calendar fine though.

PowerUser64 avatar Apr 17 '23 07:04 PowerUser64

Right, only events in the top bar are still using the default color, I will fix it soon (It's a UI glitch)

naveensingh avatar Apr 17 '23 07:04 naveensingh

Just got the update from F-Droid (6.21.7) and now see the colors form Nextcloud synced with DAVx⁵ :rocket:

Thank you so much :clap:

boardend avatar Apr 17 '23 09:04 boardend

should be working just fine already

tibbi avatar Jun 19 '23 14:06 tibbi