Bug 469957

Summary: Emblem icon becomes a white square when a .desktop file is selected in the file open dialog
Product: [Frameworks and Libraries] frameworks-kiconthemes Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Christoph Feck <cfeck>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs, nate
Priority: NOR    
Version: 5.106.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2023-05-18 16:39:52 UTC
Created attachment 159084 [details]
screenshot

STEPS TO REPRODUCE
1. copy a .desktop file from /home/your_username/.local/share/applications/ to Desktop
2. open Kate
3. press ctrl+o, navigate to Desktop, and select the .desktop file copied in the step 1

OBSERVED RESULT
a exclamation mark icon overlaps the .desktop icon copied to desktop, but it becomes a white square when the .desktop file is selected. Please see the attached screenshot.

EXPECTED RESULT
the exclamation mark icon should not disappear from the selected .desktop file

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Graphics Platform: Wayland

ADDITIONAL INFORMATION
in the file save dialog (ctrl+s) the bug occurs after selecting the .desktop file and then clicking on it again
Comment 1 Nate Graham 2023-05-19 19:51:01 UTC
Can confirm. 

Weird interaction between the icon rendering code and the icon; does not seem to affect the link icon. The exclamation point emblem icon is most likely affected because all of its colors use a re-colorable color from the color scheme. Perhaps there is a re-coloring bug that causes the neutral text to be inappropriately replaced with white when in the "selected" state.