<table><tr><td style="">broulik created this revision.<br />Restricted Application added projects: Plasma, Frameworks.<br />Restricted Application added subscribers: Frameworks, plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6313" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Since Qt 5.9 there's a ScaledPixmapHook in QIconEngine which is called when device pixel ratio is > 1 and it wants a scaled pixmap. In contrast to regular pixmap this also knows the scale factor.</p>
<p>This way, when a 32px icon is requested, we can now tell whether we want a 16px scaled 2x or if it's a legitimate 32px request. It ensures that we keep symbolic small icons even on high-dpi screens where we would otherwise load the colorful and hard-to-see icons at the given physical size they ends up at.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran <tt style="background: #ebebeb; font-size: 13px;">QT_SCREEN_SCALE_FACTORS=3 kate</tt>:<br />
Before:<br />
<a href="https://phabricator.kde.org/F3789197" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F3789197: Screenshot_20170621_151044.png</a><br />
After:<br />
<a href="https://phabricator.kde.org/F3789196" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F3789196: Screenshot_20170621_144649.png</a></p>
<p>Before:<br />
<a href="https://phabricator.kde.org/F3789201" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F3789201: Screenshot_20170621_151140.png</a><br />
After:<br />
<a href="https://phabricator.kde.org/F3789199" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F3789199: Screenshot_20170621_151118.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R302 KIconThemes</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6313" rel="noreferrer">https://phabricator.kde.org/D6313</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kiconengine.cpp<br />
src/kiconengine.h<br />
src/kiconloader.cpp<br />
src/kiconloader.h</div></div></div><br /><div><strong>To: </strong>broulik, kde-frameworks-devel, Plasma, VDG<br /><strong>Cc: </strong>plasma-devel, Frameworks, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>