<table><tr><td style="">sitter created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />sitter requested review of this revision.
</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/D19033">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>qicon::fromtheme internally skips resolution of absolute paths and instead<br />
simply opens it by path. so, simplify the code by only calling fromTheme.</p>
<p>this has two additional advantages:<br />
a) the icon size is now always capped at 128x128 (smaller icons are smaller</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">but that beats upscaling) preventing problems where a distribution might
use too large a resolution so the kcm looks wonky on scaling factor 1</pre></div>
<p>b) the LogoPath config may now also be an icon name for resolution through</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">the icon theme instead of an absolute path</pre></div></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">huge logos are scaled into shape</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R102 KInfoCenter</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.15</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19033">https://phabricator.kde.org/D19033</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>Modules/about-distro/README<br />
Modules/about-distro/src/Module.cpp</div></div></div><br /><div><strong>To: </strong>sitter<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>