Skip to content

[icon] Fix icon colors when using Plasma platformtheme and QIcon source

Nicolas Fella requested to merge work/nico/correct-icon-colors into master

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.

BUG: 491274

Before:

Screenshot_20240804_090636.png

After:

Screenshot_20240804_091637.png

Edited by Nicolas Fella

Merge request reports

Loading