Bug 500243 - Custom folder icons do not appear on the weekview.
Summary: Custom folder icons do not appear on the weekview.
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: agendaview (weekview) (other bugs)
Version First Reported In: 6.3.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-17 10:16 UTC by Brendan Mesters
Modified: 2025-02-20 20:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Mesters 2025-02-17 10:16:10 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
If you have a folder with subfolders, then the subfolders will not see their custom icons displayed. They seem to be fully shadowed by the super folder

STEPS TO REPRODUCE
1. Download a calendar with multiple fodlers
2. Set a custom icon for an inner folder
3. See that the icon does not show up in weekview

OBSERVED RESULT
Icons seem to be shadowed by parent directories

EXPECTED RESULT
Custom set icons of child directories should have priority over parent directories icons/have a setting to do so.

SOFTWARE/OS VERSIONS
Fedora 41 KDE Plasma
KDE Plasma 6.3
Korganizer 6.3

ADDITIONAL INFORMATION
I'm unsure if this is intended behaviour by the developers, but I think that users should be able to have subdirectories shadow parent directories their icons. It might be best with a simple checkbox "Shadow parent directories icon" inside of the folder properties.
Comment 1 Bug Janitor Service 2025-02-19 15:44:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/eventviews/-/merge_requests/107
Comment 2 Allen Winter 2025-02-20 13:51:26 UTC
Git commit 007f77f06f7f8c6cb284b4eadfa4b4759b10167d by Allen Winter.
Committed on 19/02/2025 at 17:36.
Pushed by winterz into branch 'master'.

src/eventview.cpp - use the Item's storage collaction icon, if found

In EventView::iconForItem, first look to the item's storage collection
for a custom iconname.  Else, fall back to searching up the non-storage
collection heirachy for an iconname.

Fixes displaying custom icons in the various views.

M  +12   -5    src/eventview.cpp

https://invent.kde.org/pim/eventviews/-/commit/007f77f06f7f8c6cb284b4eadfa4b4759b10167d
Comment 3 Allen Winter 2025-02-20 14:01:19 UTC
Git commit 16e2d1d94101ca9fadfbdcd63459523a09359883 by Allen Winter.
Committed on 20/02/2025 at 13:57.
Pushed by winterz into branch 'release/24.12'.

src/eventview.cpp - use the Item's storage collaction icon, if found

In EventView::iconForItem, first look to the item's storage collection
for a custom iconname.  Else, fall back to searching up the non-storage
collection heirachy for an iconname.

Fixes displaying custom icons in the various views.

M  +12   -5    src/eventview.cpp

https://invent.kde.org/pim/eventviews/-/commit/16e2d1d94101ca9fadfbdcd63459523a09359883