Summary: | Opening digital clock changes the colors of the enabled calendars (the colors are sent then to nextcloud each time) | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Akseli Lahtinen <akselmo> |
Component: | Digital Clock widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | kdedev, m_louis30, nate |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/pim/kdepim-addons/-/commit/b5f70b11b8f618d639598c5d04e264ab1463d321 | Version Fixed In: | |
Sentry Crash Report: |
Description
Akseli Lahtinen
2024-08-27 17:51:57 UTC
Seems like AkonadiPimDataSource::calendarColorForIncidence can modify the color: https://invent.kde.org/pim/kdepim-addons/-/blob/master/plugins/plasma/pimeventsplugin/akonadipimdatasource.cpp?ref_type=heads#L88 This happens when the color is not registered as an Akonadi::CollectionColorAttribute in the parent collection. [continuing, sorry for submitting too fast] ...or when the color returned by the attribute is invalid. It then checks the KOrganizer config for settings that are not set in my case. The default is "blue" but this doesn't appear to be effective. If the color fetched from the settings is not valid, a random color is chosen and set on the resource. The ical/icaldir resources do not have support for calendar colors, so they are added by a KOrganizer/EventView overlay. One bug is that the colors have been moved to eventviewsrc instead of korganizerrc. Let's hope this is the only one. A possibly relevant merge request was started @ https://invent.kde.org/pim/kdepim-addons/-/merge_requests/56 Git commit b5f70b11b8f618d639598c5d04e264ab1463d321 by Carl Schwan, on behalf of Louis Moureaux. Committed on 28/08/2024 at 08:14. Pushed by carlschwan into branch 'master'. Fix loading calendar colors from EventViews in the events plugin The plugin was trying to load colors from the KOrganizer config, but this has been moved to EventViews. As a result, the data source was assigning random colors to the Akonadi resources, which ended up messing up KOrganizer's colors. M +1 -1 plugins/plasma/pimeventsplugin/akonadipimdatasource.cpp https://invent.kde.org/pim/kdepim-addons/-/commit/b5f70b11b8f618d639598c5d04e264ab1463d321 Not fixed with the patch, unfortunately, at least when I tried using the kdepim-addons build with the patch. I think this problem is somewhere deeper, since it happens every time the calendar information is loaded, not just with digital clock. *** This bug has been marked as a duplicate of bug 492396 *** |