Apply the correct palette to icons

Authored by davidre on Mar 30 2020, 12:56 PM.

Description

Apply the correct palette to icons

Summary:
Our icons can be recolored. However there is a difference between custom colors
on widgets and icons. We will respect the palette but KIconLoader that creates
the icon pixmaps operates on an application wide palette basis. This can create
miscolored icons when a widget has a custom palette. A helper function is
introduced to load the pixmaps that switches the palette of the global
KIconLoader if necessary and resets it appropriately.

Test Plan:
Before:


After:

Reviewers: Breeze, ndavis, cblack, hpereiradacosta, mart

Reviewed By: cblack, mart

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D28433

Details

Committed
davidreApr 7 2020, 7:52 AM
Reviewer
cblack
Differential Revision
D28433: Apply the correct palette to icons
Parents
R31:885c778378b8: Remove unused methods
Branches
Unknown
Tags
Unknown