fade plasmoids too, but at double speed

svn path=/trunk/KDE/kdebase/workspace/; revision=1188163
This commit is contained in:
Andreas Demmer 2010-10-21 15:07:34 +00:00
parent 1871c2fee8
commit e5044f2fb5

View file

@ -84,6 +84,19 @@ void DashboardEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Wi
data.saturation *= (1 - (saturationDelta * timeline.value()));
}
else if( transformWindow && ( w == window ) && w->isManaged() )
{
// transform dashboard
if ((timeline.value() * 2) <= 1)
{
data.opacity *= timeline.value() * 2;
}
else
{
data.opacity *= 1;
}
}
effects->paintWindow( w, mask, region, data );
}