You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
606 B
24 lines
606 B
effects.windowAdded.connect(function(w) { |
|
w.anim1 = animate({ |
|
window: w, |
|
duration: 100, |
|
animations: [{ |
|
type: Effect.Scale, |
|
to: 1.4, |
|
curve: QEasingCurve.OutCubic |
|
}, { |
|
type: Effect.Opacity, |
|
curve: QEasingCurve.OutCubic, |
|
to: 0.0 |
|
}] |
|
}); |
|
sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1)); |
|
|
|
w.minimizedChanged.connect(() => { |
|
if (w.minimized) { |
|
retarget(w.anim1, 1.5, 200); |
|
} else { |
|
cancel(w.anim1); |
|
} |
|
}); |
|
});
|
|
|