custom animations in plasma

Aaron J. Seigo aseigo at kde.org
Sat Aug 28 19:23:47 CEST 2010


On Saturday, August 28, 2010, Ash Ketchum wrote:
> the svg files i found are made to spin only, and the animation itself seems
> to be coded somewhere in plasma. where can i find the animation part in
> the code ?

in this particular case, the animations are in the notifications widget. it is 
using some QPropertyAnimations, a Plasma::ZoomAnimation, two 
Plasma::PixmapTransitionAnimations... the pie chart is just draw manually in 
BusyWidget::paint; it isn't using an animation for that at all.

all of this is in kdebase/workspace/plasma/generic/applets/notifications/ui/

so you could either work on modification directly to that code to suit your 
tastes, and/or you could make the code use generic components (such as add 
progress-chart styling to Plasma::BusyWidget, and have the notifications 
plasmoid use that) so that it becomes themable.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100828/bd4d6a5f/attachment.sig 


More information about the Plasma-devel mailing list