D27589: Try to apply the colorscheme of the current theme to QIcons

Marco Martin noreply at phabricator.kde.org
Mon Feb 24 11:09:25 GMT 2020


mart requested changes to this revision.
mart added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> iconitem.cpp:600
>      } else if (!m_icon.isNull()) {
> +        KIconLoader::global()->setCustomPalette(KColorScheme::createApplicationPalette(Plasma::Theme().colorScheme()));
>          result = m_icon.pixmap(QSize(size, size) * (window() ? window()->devicePixelRatio() : qApp->devicePixelRatio()));

maybe Plasma::Theme should have a qpalette getter?

REPOSITORY
  R242 Plasma Framework (Library)

REVISION DETAIL
  https://phabricator.kde.org/D27589

To: davidre, #plasma, cblack, ngraham, mart
Cc: mart, wbauer, cblack, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200224/f3e3ffd9/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list