The IconItem to be done... scale, and appearScale create the hover animation:
PlasmaCore.IconItem { id: iconImage property int newTempSize: Math.floor(panel.iconSize * wrapper.scale * wrapper.appearScale) width: newTempSize height: newTempSize On 7/28/16, Michail Vourlakos <mvourla...@gmail.com> wrote: > David, I had tried it some iterations before in my code path, it wasnt > as equally performant as the Images solution, I will give it one more > try... > > I suppose you are proposing to drop Images, add a ShaderEffectSource > with live:false for DropShadow and the animation for hover to add it > in the PlasmaCore.IconItem right? > > PlasmaCore.IconItem { > id: iconImage > width: 2 * panel.iconSize - 8 > height: 2 * panel.iconSize - 8 > > property int newTempSize: Math.floor(panel.iconSize * > wrapper.scale * wrapper.appearScale) > width: newTempSize > height: newTempSize > > > > On 7/28/16, David Edmundson <da...@davidedmundson.co.uk> wrote: >> ShaderEffectSource with live:false should be equally performant as this >> (if >> anything more so). >> It /should/ also fix your code. >> >> Then call scheduleUpdate() whenever onSourceChanged is emitted. >> >> We load the pixmap in the polish() event which happens between all QML >> processing and the frame being rendered. >> There's no timer. >> > _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel