Bug 506437 - Invisible icons on selected (tool) buttons
Summary: Invisible icons on selected (tool) buttons
Status: REPORTED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-01 13:42 UTC by Ingo Klöcker
Modified: 2025-07-01 13:55 UTC (History)
2 users (show)

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


Attachments
Invisible icon on focussed (raised) button in Kate's Find&Replace panel (4.43 KB, image/png)
2025-07-01 13:42 UTC, Ingo Klöcker
Details
Hard to see icon on focussed (pressed) button in Kate's Find&Replace panel (4.44 KB, image/png)
2025-07-01 13:43 UTC, Ingo Klöcker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Klöcker 2025-07-01 13:42:18 UTC
Created attachment 182835 [details]
Invisible icon on focussed (raised) button in Kate's Find&Replace panel

In many applications the icons on buttons become invisible (or very hard to see) when the button gets focus. See for example the two screenshots showing tool (?) buttons in Kate's Find&Replace panel.

I think the problem is that Breeze uses the selected state for painting the icon so that KIconLoader recolors the icon with the highlight text color (white) which is wrong for buttons because selected buttons are not colored with the highlight color.
Comment 1 Ingo Klöcker 2025-07-01 13:43:09 UTC
Created attachment 182836 [details]
Hard to see icon on focussed (pressed) button in Kate's Find&Replace panel
Comment 2 Ingo Klöcker 2025-07-01 13:55:05 UTC
The problem doesn't occur with the Fusion style (likely because QCommonStyle never passes QIcon::Selected to the icon drawing).