2ff0fc26a4
The main motivation is to match the Window API.
12 lines
357 B
JavaScript
12 lines
357 B
JavaScript
effects.windowAdded.connect(function(w) {
|
|
w.anim1 = effect.animate(w, Effect.Scale, 100, 1.4, 0.2, 0, QEasingCurve.OutCubic);
|
|
sendTestResponse(typeof(w.anim1) == "number");
|
|
|
|
w.minimizedChanged.connect(() => {
|
|
if (w.minimized) {
|
|
retarget(w.anim1, 1.5, 200);
|
|
} else {
|
|
cancel(w.anim1);
|
|
}
|
|
});
|
|
});
|