Bug 328862 - support caldav property calendar-color
Summary: support caldav property calendar-color
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 369260 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-16 12:38 UTC by tony den haan
Modified: 2017-11-28 16:33 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tony den haan 2013-12-16 12:38:24 UTC
Several clients honour and/or allow setting/changing the calendar-color property (http://apple.com/ns/ical/:calendar-color). Would be nice to also see that in korganizer/.
Comment 1 Stefan Huber 2014-01-28 12:35:56 UTC
This feature could also resolve a bug for me: korganizer frequently forgets my calender's colors and reassigns them new pseudo-random colors.
Comment 2 szymon.pysz@gmail.com 2014-05-27 08:08:01 UTC
hi,

Yes, I confirmed that. I am using 4.13.1
It would be nice if korganizer to set up colors calendar from dav server.

Regards,
Simon
Comment 3 Knut Hildebrandt 2015-03-16 16:50:36 UTC
Well, I can assign colours to my calenders. Bus as Stefan Huber states, they are forgotten frequently and reassigned randomly.
Comment 4 Knut Hildebrandt 2015-03-16 16:52:48 UTC
Sorry, I forgot to mention that I'm running KDE 4.14.5 and Akonadi 1.13.0 on an up-to-date Chakra Linux.
Comment 5 Marcel Waldvogel 2015-05-29 11:51:31 UTC
I have several dozen calendars with carefully chosen colors. After entering them the first time, my system crashed and I no longer have the colors. I also really don't have the patience to add the colors again, if all the CalDAV software on the many devices I used in the past few years automatically fetches the CalDAV colors.

Please do add this feature soon.

BTW: I would have written a script to extract the color information and feed it to KOrganizer/Akonadi myself, but did not found where color information is stored in KOrganizer/Akonadi.

Knowing about that location might also help my fellow posters here in this bug to backup and restore their colors locally.

(Kubuntu 15.04 with KOrganizer 4.14.6 and Akonadi 1.13.0)
Comment 6 Tom Mittelstädt 2015-09-16 10:34:35 UTC
Colors are stored in ~/.kde/share/config/korganizerrc in [Category Colors2]

If you set the colors manually, they are stored in a format like
work=255,0,0
however, from time to time every color is set to:
work=invalid
and korganizer shows random colors again.
Comment 7 szymon.pysz@gmail.com 2015-10-05 22:54:23 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Christian Heller 2016-06-28 12:20:32 UTC
I confirm that KOrganizer forgets colours assigned to SELF-CREATED categories.
KOrganizer Version 4.14.1
Using KDE Development Platform 4.14.2
Debian GNU/Linux stable

See also:
Bug 357914
Comment 9 Erik Quaeghebeur 2017-08-23 13:56:34 UTC
This is also a (kind of) prerequisite before implementing the COLOR property <https://tools.ietf.org/html/rfc7986#section-5.9>.
Comment 10 Olivier Churlaud 2017-08-26 10:10:28 UTC
First part solved here: https://cgit.kde.org/kdepim-runtime.git/commit/?id=27827abd82f865c2688631cbab5ff797504f53a8

Second and third patches in review, hopefully pushed this afternoon:
 - https://phabricator.kde.org/D7500
 - https://phabricator.kde.org/D7501
Comment 11 Olivier Churlaud 2017-08-26 13:29:13 UTC
Git commit 3c90b8611a74593cd06391ba5eeba2b8130d0edf by Olivier CHURLAUD.
Committed on 26/08/2017 at 11:56.
Pushed by ochurlaud into branch 'master'.

Korganizer can use CollectionColorAttributes for calendar colors

KOHelper now calls the EventViews functions of helper.h instead of KOPrefs
KOPrefs is not called anymore by Korganizer for colorResources managing.
This depends on D7500

Differential Revision: https://phabricator.kde.org/D7501

M  +1    -1    CMakeLists.txt
M  +4    -9    src/akonadicollectionview.cpp
M  +7    -23   src/kohelper.cpp

https://commits.kde.org/korganizer/3c90b8611a74593cd06391ba5eeba2b8130d0edf
Comment 12 Achim Bohnet 2017-11-28 16:33:33 UTC
*** Bug 369260 has been marked as a duplicate of this bug. ***