<div dir="ltr">I'm running into a little bit of the inconsistency in systray icon sizes as we're working to try to improve the systray icons.<div><br></div><div><a href="http://wstaw.org/m/2014/09/21/5.1_systray_scaling_bug.png">http://wstaw.org/m/2014/09/21/5.1_systray_scaling_bug.png</a><br></div><div><br></div><div>The icons are still a WIP so please ignore that for the moment. All the icons are 16x16 sitting on a padding rect in the svg. The only way I can get all the icons to properly render at 16x16 is to use a 32x32 padding rect for the example battery icon and a 24x24 padding rect for the klipper icon (the first screenshot). If I put them both on a 24x24 rectangle the battery icon appears to get scaled up resulting in both a bigger icon, and the icon no longer aligned to the pixel grid resulting in bluriness (the second screenshot) for the battery icon but a sharp klipper icon. The other downside is that with such a big padding rect for the battery icon, where it is used elsewhere the icon is really small.</div><div><br></div><div>The same thing happens with the network icons as the battery icons.</div><div><br></div><div>I'm not sure how to tell how the icon will be used, so I'm not what rule to follow to ensure the icon sizes are rendered consistently.</div><div><br></div><div>I was going to file a bug, but I wasn't sure so I thought I'd chime in here.</div><div><br></div><div>Hope this helps,</div><div>Andrew</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 12:56 AM, Marco Martin <span dir="ltr"><<a href="mailto:notmart@gmail.com" target="_blank">notmart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Friday 12 September 2014, Kai Uwe Broulik wrote:<br>
> Hi,<br>
><br>
> One of the problems is that most of the tray icons use a Plasma IconItem<br>
> which follows the icon sizes (16, 22, 32, 48, ...) whereas a custom item<br>
> does not.<br>
><br>
> This is also the reason why battery and network usually appear in a<br>
> different size since they're using SvgItem which doesn't have this magic.<br>
><br>
> Imho that needs fixing in systray.<br>
<br>
I'm not sure that can be fixed in the systray, because it's still important<br>
for the clickable area to reach the screen edge(fitts law and all that jazz),<br>
so the actual item size should still touch the containment edges.<br>
<br>
and is the same thing for applets just in the panel, you would have the same<br>
problem, so in order to retain flexibility custom compactrepresentation items<br>
should still compute their size...<br>
<br>
What about a function<br>
units.roundToIconSize(size)  ?<br>
<br>
would still be manual, but very quick to do<br>
<br>
MouseArea {<br>
//the rootitem that goes to the edget<br>
<br>
        Item {<br>
                //whatever is graphics goes here<br>
                width: units.roundToIconSize(parent.width)<br>
                height: width<br>
                anchors.centerIn: parent<br>
        }<br>
<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Marco Martin<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</font></span></blockquote></div><br></div>