[Icon Plasmoid] Provide a generic plasmoid class for icon based plasmoid
Loïc Marteau
loic.marteau at gmail.com
Mon Jun 2 22:44:02 CEST 2008
Anne-Marie Mahfouf wrote:
> Hi Loic,
>
> One remark: when you attach a whole example could you tar the files in an
> archive please?
>
> For the code it could be used for the current tutorial on techbase.org, adding
> a right click menu action to do something for ex, replacing the current tuto.
>
> I think
> setBackgroundHints(NoBackground);
> setAspectRatioMode(Plasma::Square);
> should be in the constructor and I would add
> resize(80, 80);
> so the applet actually shows the icon.
>
> When I changed to
> setBackgroundHints(TranslucentBackground);
> the icon is really smaller in the panel so there's some kind of bug discovered
> here. Marco said he'll have a look.
>
> Please send patches for the applets that could run better with less code,
> thanks!
>
> Anne-Marie
>
>
Hi Anne-Marie
Here is the first patch i made for showdashboard in order to use this
implementation.
Can someone apply the patch if it is ok ?
I will provide patch for other plasmoid later.
I'm waiting for Marco to adapt the code and use
Plasma::ConstrainedSquare later (what do you think about that name instead
KeepIntoSquare ?
Thanks and cheers !
cc to the contributors of the show dashboard plasmoid,
according to what we said in the thread the idea is to provide a common
simple way to implement constraints stuff in all icon based plasmoid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: showdashboard_iconplasmoid.patch
Type: text/x-diff
Size: 2900 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080602/6a032c27/attachment.bin
More information about the Panel-devel
mailing list