2018-07-23 21:52:58 +00:00
|
|
|
effects.windowAdded.connect(function(w) {
|
|
|
|
w.anim1 = animate({
|
|
|
|
window: w,
|
|
|
|
duration: 100,
|
|
|
|
animations: [{
|
|
|
|
type: Effect.Scale,
|
2018-08-07 20:32:53 +00:00
|
|
|
to: 1.4,
|
2020-03-04 10:51:25 +00:00
|
|
|
curve: QEasingCurve.OutCubic
|
2018-07-23 21:52:58 +00:00
|
|
|
}, {
|
|
|
|
type: Effect.Opacity,
|
2020-03-04 10:51:25 +00:00
|
|
|
curve: QEasingCurve.OutCubic,
|
2018-07-23 21:52:58 +00:00
|
|
|
to: 0.0
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1));
|
|
|
|
|
2023-11-21 11:39:23 +00:00
|
|
|
w.minimizedChanged.connect(() => {
|
|
|
|
if (w.minimized) {
|
|
|
|
retarget(w.anim1, 1.5, 200);
|
|
|
|
} else {
|
|
|
|
cancel(w.anim1);
|
|
|
|
}
|
|
|
|
});
|
2018-07-23 21:52:58 +00:00
|
|
|
});
|