<table><tr><td style="">pgkos added a comment.
</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/D10487" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>There is something wrong and inconstent about SVG icon scaling. For example, if I put this line in systemtray ui main QML code instead:</p>
<p><tt style="background: #ebebeb; font-size: 13px;">property int itemSize: Math.min(width, height)</tt></p>
<p>then the KDE Connect icon completely fills the height of the panel.</p>
<p>Which is obviously wrong, because if we open /usr/share/plasma/desktoptheme/default/icons/kdeconnect.svgz in an SVG editor we see that the icon is drawn on a 32x32px canvas ("page") and it has 2px top and bottom padding inside the canvas.</p>
<p>That padding disappears when the icon is drawn on the panel. That is wrong because if it was a 32x32px bitmap icon, the padding (transparent pixels) would be preserved.</p>
<p>That is the reason why we need to force padding (0.85*height) in the tray, but not in the application shortcut icons - the tray icons are SVG icons, but the application shorcut icons are bitmaps.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10487" rel="noreferrer">https://phabricator.kde.org/D10487</a></div></div><br /><div><strong>To: </strong>pgkos, Plasma: Workspaces, davidedmundson<br /><strong>Cc: </strong>ngraham, davidedmundson, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>