9e10394db1
This makes the api of EffectWindow more similar to the api of Window. It also makes more sense to keep such signals in EffectWindow. In the future, the effect window can be dropped in favor of the window.
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
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.windowUnminimized.connect(() => cancel(w.anim1));
|
|
w.windowMinimized.connect(() => retarget(w.anim1, 1.5, 200));
|
|
});
|