Bug 509260

Summary: Loading icon Dark on a Breeze Dark theme
Product: [Plasma] Breeze Reporter: nili <sowt>
Component: IconsAssignee: visual-design
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: kainz.a, m, nate, zerg
Priority: NOR    
Version First Reported In: 6.4.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Loading... Icon
sample
user report about krusader

Description nili 2025-09-08 06:57:34 UTC
Created attachment 184800 [details]
Loading... Icon

SUMMARY
I've noticed if a very high-resolution image ie: 12719x5782 or similar opens, i see a loading icon with a pale monochrome color.

STEPS TO REPRODUCE
Just open a very high-res image to make it possible to display this icon.

EXPECTED RESULT
I wish it had a white symbolic color on a Dark Breeze theme.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250905
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Graphics Platform: Wayland
Comment 1 Sergey V Turchin 2025-09-12 07:55:48 UTC
Too many icons became dark in breeze-dark. For example dialog-cancel.svg
Comment 2 Nate Graham 2025-09-16 20:32:05 UTC
What app are you seeing this in? Can you write specific steps to reproduce that I can follow to the letter to make it happen?
Comment 3 Sergey V Turchin 2025-09-18 10:46:23 UTC
Created attachment 185041 [details]
sample

Icons from dark icon theme looks too dark when applied dark desktop theme. But looks fine on a light desktop theme.
Comment 4 Sergey V Turchin 2025-09-18 13:20:52 UTC
Created attachment 185047 [details]
user report about krusader
Comment 5 Nate Graham 2025-09-18 18:06:22 UTC
The icons themselves re-color just fine. If this isn't happening, it means one of a few things might be happening:
- You don't have plasma-integration as the Qt Platform Theme. plasma-integration is the part that uses KDE's icon loader which performs the re-coloring. qt5ct or qt6ct will not do this properly
- The app might be setting its own icon loader, which would then not perform the re-coloring properly

Regardless, this isn't an issue with the icons themselves.
Comment 6 nili 2025-09-19 09:19:47 UTC
Mine [Attach] viewed from Gwenview
Comment 7 Sergey V Turchin 2025-09-22 07:25:32 UTC
(In reply to Nate Graham from comment #5)
> - You don't have plasma-integration as the Qt Platform Theme.
I have.

> qt5ct or qt6ct will not do this properly
Don't using.

> - The app might be setting its own icon loader, which would then not perform
> the re-coloring properly
My code sample very simple.
Comment 8 Sergey V Turchin 2025-09-22 07:30:42 UTC
This only happens when I use QIcon::setThemeName("breeze_dark");
Other apps running in the same environment aren't affected.
Comment 9 Sergey V Turchin 2025-09-22 07:35:23 UTC
(In reply to Nate Graham from comment #5)
> - You don't have plasma-integration as the Qt Platform Theme.
I have a case when I need this without plasma-integration. Like run app from other user.

The problem is that breeze and breeze_dark icons a both dark.
Comment 10 Sergey V Turchin 2025-09-23 09:23:54 UTC
"Do NOT use QIcon::setThemeName"
"KIconEngine on Plasma, which breaks recoloring"
https://invent.kde.org/frameworks/kiconthemes/-/blob/master/src/kiconloader.cpp?ref_type=heads#L370
Comment 11 Sergey V Turchin 2025-09-23 10:31:17 UTC
So breeze_dark is not usable without plasma-integration.
Comment 12 Nate Graham 2025-09-23 14:55:00 UTC
Plasma-integration is what turns on KDE's icon loader engine, which is the thing responsible for re-coloring icons.

It works this way because icon re-coloring is not a cross-desktop spec, and there's no support for it in Qt (at least, not the way we do it). Therefore we have to do it ourselves, which means we have to use our own code to do it, which means something needs to use that code, and that something is plasma-integration.

If for some reason you can't or don't want to use plasma-integration, there's a workaround: use the "Breeze Dark" icon theme. That icon theme uses a light color for the icons, so even if they don't get re-colored, they should be visible on top of a dark background.
Comment 13 Sergey V Turchin 2025-09-24 08:04:22 UTC
(In reply to Nate Graham from comment #12)
> "Breeze Dark" icon theme. That icon theme uses a light color for the icons
No. This is the problem.  They are dark.
Comment 14 Sergey V Turchin 2025-09-24 08:13:37 UTC
It seems to be my packaging problem. In SuSE they are light.
https://download.opensuse.org/tumbleweed/repo/oss/x86_64/kf6-breeze-icons-6.18.0-1.1.x86_64.rpm