On Monday 19 January 2009, David Baron wrote: > I notice that some applets/icons will change there color/birghtness a bit > on hover. The device-monitor applet does this as do any shortcuts or > folders I placed on the panel. How do I do this?
it's part of Plasma::IconWidget. you can also do it yourself for custom items by reacting on hover events and starting an animation that uses one of the KPixmapEffects. take a look at the code in IconWidget to see how it does it if you're interested. generally, though, just use the Plasma widget classes. you'll save yourself a lot of grief. there are rather few reasons to do all your painting. -- 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 Software
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel