f9394d83f7
Summary: See https://invent.kde.org/websites/hig-kde-org/-/merge_requests/70 Reviewers: #kwin, ngraham Reviewed By: ngraham Subscribers: ngraham, zzag, apol, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D27827
24 lines
592 B
JavaScript
24 lines
592 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));
|
|
});
|
|
|
|
effects.windowUnminimized.connect(function(w) {
|
|
cancel(w.anim1);
|
|
});
|
|
|
|
effects.windowMinimized.connect(function(w) {
|
|
retarget(w.anim1, 1.5, 200);
|
|
});
|