davidedmundson created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY With both Qt devicePixelRatio > 1 and Qt::AA_UseHighDpiPixmaps set QIcon.pixmap() will return a bigger image than the size requested, with the relevant devicePixelRatio set. This code is trying to center an icon within a bounding rect, (like QStyle::drawItemPixmap) and so positioning should use normalised pixels, not actual pixmap pixels. This affected Systemsettings previews but not kwin. REPOSITORY R31 Breeze BRANCH master REVISION DETAIL https://phabricator.kde.org/D6763 AFFECTED FILES kdecoration/breezebutton.cpp To: davidedmundson, #plasma Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas