Created attachment 172278 [details] Screenshot STEPS TO REPRODUCE 1. Use dark Plasma and light applications theme 2. Open any app that has a monochrome/symbolic app icon, e.g. the DrKonqi Crashed Processes viewer 3. Look at the task manager OBSERVED RESULT The icon elements are dark. See screenshot EXPECTED RESULT The icon elements are light SOFTWARE/OS VERSIONS KDE Plasma Version: master KDE Frameworks Version: master Qt Version: 6.8
The cause: - libtaskmanager resolves the icon for the app and loads it via QIcon::fromTheme - the UI passes that QIcon to Kirigami.Icon - the libplasma kirigami plugin usually makes sure that icons are loaded with the right colors, but it doesn't apply here because we don't pass a name to Kirigami.Icon but a QIcon directly
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1603
Git commit f673694e6f90efa0179a6f8322d4c44d544ff591 by Nicolas Fella. Committed on 14/08/2024 at 12:43. Pushed by nicolasfella into branch 'master'. [icon] Fix icon colors when using Plasma platformtheme and QIcon source When using a name as source we load the icon from the platform theme and therefore apply the right theme colors. However when we receive a QIcon as source it might not have been loaded with the right theme colors. To fix this check if the icon was obtained by name and reload it from the platformtheme then. The late PlasmaCore.IconItem did something similar. M +20 -6 src/primitives/icon.cpp M +1 -0 src/primitives/icon.h https://invent.kde.org/frameworks/kirigami/-/commit/f673694e6f90efa0179a6f8322d4c44d544ff591