I’ve submitted https://gitlab.com/bitfireAT/davx5-ose/-/merge_requests/31
@rfc2822 Did you have something like this in mind?
Different colors for multiple calendars
-
At the moment, the same color is used for all calendars. Different colors could help to distinguish events in different calendars.
-
+1
Would like to see same colors as defined in my Owncloud. -
Also would like to see that and also using owncloud (sync works like a charm). Theres a workaround with this app https://play.google.com/store/apps/details?id=com.onerainboot.setcalendarcolors
-
Hi, with the latest version the calendars do get different colors now, but those are not the colors I see in other calendar clients. I think the current color parsing code expects strings of the form “0xFFC3EA6E” from server, but my server returns something like “#C3EA6EFF”.
Looks like there’s no definite format specification for this; but when googling for “http://apple.com/ns/ical/:calendar-color/” I get the impression that the common form is the hash-prefixed string, with red, green, blue and alpha components (in that order). Sometimes the alpha component is left out, so the server only sends “#C3EA6E”.
In contrast, in Android integer colors the components are ordered alpha-red-green-blue (eg. 0xFFC3EA6E). So I think the parsing code needs to shuffle the bytes around to get the correct color.
-
Oh, you’re right, I will have to look at this… I just introduced the property and was happy that some color appeared, didn’t check if it’s the right one
-
I can confirm: just upgraded to DAVdroid 0.3.8-alpha from f-droid. When I import calendar (blue color) from ownCloud 5.0.12 I get something like light grey as color on phone. Text is white, so it’s almost impossible to read on light grey background.
-
@SamHawkens Should be fixed in latest commit.
-
just updated to davdroid 0.4.1-alpha, deleted the old account, also cleared the app’s data and calendar data. Then created a new owncloud account. Problem still remains: grey calendar instead of blue (white text on gray background, almost unreadable). Is there any information I can provide? Or would it be an option to manually choose colour in app?
-
@SamHawkens The option to manually choose a color is planned. In the meanwhile, you may use (Set Calendar Colors)[https://play.google.com/store/apps/details?id=com.onerainboot.setcalendarcolors].
-
Android doesn’t even provide a native color picker…
-
birthday adapter lets you choose the calendar color, so maybe one could use some code from there… https://github.com/dschuermann/birthday-adapter
-
Just for information, i use davdroid with tine20 (release collin) and the colors in davdroid are the same as I configured them in tine20. Thanks!
-
I’m using eGroupware Community Edition as a server, it does not have colors for calender entries. So I would be very happy if DAVdroid would allow to set them manually, as promised above. For now I use “Set calendar colors”.
-
Owncloud’s calendar colors ain’t recognized either.
-
I tested it with Owncloud and it worked. Please post more details.
-
I’ve got hit by #136, please ignore my last message.
-
Please see #136 for further discussion.