[Panel-devel] [PATCH] on icon resizing
Shawn Starr
shawn.starr at rogers.com
Fri Dec 21 05:49:14 CET 2007
On Thursday 20 December 2007 4:19:41 pm Marco Martin wrote:
> Hi all,
> i've tried in many ways to make the icon applet to resize nicely, i.e being
> always large enough to display most of the text and high enough to display
> the label and no more.
> and i came with this thing...
> on a side note i wanted to set a minimum size to the icon raher to the
> applet, otherwise it would look very bad with all the icon with a different
> minimum size depending on how long the text is
> how does it look? are there some particular problems?
>
> about the icon widget i have another doubt: is the method calculatesize()
> still needed at all? or it's a remain of when the applets worked a little
> bit different?
>
> Cheers,
> Marco Martin
Hi Marco,
With the new changes to Plasma::Icon one can now set a custom SVG image (using
Plasma::Widget::Icon::setSvg() ) for the icon itself, does this patch allow
for resizing based on the size of the SVG (when it has one element in it)?
Right now, I cannot resize the actual icon, it compacts the svg image to fit
the some default size.
Aaron, do we need another overloaded method for setSvg to also allow for
selecting a specific element within a SVG file?
Thanks,
Shawn.
More information about the Panel-devel
mailing list