File indexing completed on 2024-11-10 04:55:54

0001 effects.windowAdded.connect(function(w) {
0002     w.anim1 = animate({
0003         window: w,
0004         duration: 100,
0005         animations: [{
0006             type: Effect.Scale,
0007             to: 1.4,
0008             curve: QEasingCurve.OutCubic
0009         }, {
0010             type: Effect.Opacity,
0011             curve: QEasingCurve.OutCubic,
0012             to: 0.0
0013         }]
0014     });
0015     sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1));
0016 
0017     w.minimizedChanged.connect(() => {
0018         if (w.minimized) {
0019             retarget(w.anim1, 1.5, 200);
0020         } else {
0021             cancel(w.anim1);
0022         }
0023     });
0024 });