Make window translucent when minizing, make for a fancier effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=799283icc-effect-5.14.5
parent
9075540ef0
commit
3069aa1d21
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue