Make window translucent when minizing, make for a fancier effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=799283
icc-effect-5.14.5
Sebastian Kügler 2008-04-20 23:49:31 +00:00
parent 9075540ef0
commit 3069aa1d21
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ void MinimizeAnimationEffect::paintWindow( EffectWindow* w, int mask, QRegion re
data.yScale *= interpolate(1.0, icon.height() / (double)geo.height(), progress);
data.xTranslate = (int)interpolate(data.xTranslate, icon.x() - geo.x(), progress);
data.yTranslate = (int)interpolate(data.yTranslate, icon.y() - geo.y(), progress);
data.opacity *= 0.1 + (1-progress)*0.9;
}
// Call the next effect.