<table><tr><td style="">broulik updated this revision to Diff 36878.<br />broulik retitled this revision from "[Icons KCM] Cache preview pixmaps" to "[Icons KCM] Load preview pixmaps for animation on-demand and cache them".<br />broulik edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-64tmhocuheozxwb/">(Show Details)</a><br />broulik edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-uroachacfybkuka/">(Show Details)</a>
</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/D13793">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">No need to load 18 preview pixmaps of which 12 can only be seen during the animation.<br />
Furthermore, cache the pixmaps as </span>ListView deletes and recreates delegates as you scroll, leading to us recreating the icon pixmaps as you scroll up and down with many themes installed</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Verified that every icon theme is</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">* Pixmaps are cached<br />
* KCM opens a lot faster now that only 6 pixmaps are</span> loaded <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">only once</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">per theme</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Scrolling down initially is still a bit sluggish depending on themes (I should also delay loading the animated preview pixmaps..) but once it's loaded it's fast</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">* The animation still works fine, even when icons are missing</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D13793?vs=36876&id=36878">https://phabricator.kde.org/D13793?vs=36876&id=36878</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13793">https://phabricator.kde.org/D13793</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcms/icons/main.cpp<br />
kcms/icons/main.h<br />
kcms/icons/package/contents/ui/main.qml</div></div></div><br /><div><strong>To: </strong>broulik, Plasma<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>