iconGrid: Implicitly animate icon positions
Add a proper easing state, and animate icon positions using Clutter implicit animations. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603
This commit is contained in:
parent
bf322cd51a
commit
ac3bc03f3f
@ -374,7 +374,11 @@ var IconGrid = GObject.registerClass({
|
||||
} else {
|
||||
if (!animating)
|
||||
children[i].opacity = 255;
|
||||
|
||||
children[i].save_easing_state();
|
||||
children[i].set_easing_mode(Clutter.AnimationMode.EASE_OUT_QUAD);
|
||||
children[i].allocate(childBox, flags);
|
||||
children[i].restore_easing_state();
|
||||
}
|
||||
|
||||
columnIndex++;
|
||||
@ -1098,7 +1102,12 @@ var PaginatedIconGrid = GObject.registerClass({
|
||||
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
let childBox = this._calculateChildBox(children[i], x, y, box);
|
||||
|
||||
children[i].save_easing_state();
|
||||
children[i].set_easing_mode(Clutter.AnimationMode.EASE_OUT_QUAD);
|
||||
children[i].allocate(childBox, flags);
|
||||
children[i].restore_easing_state();
|
||||
|
||||
children[i].show();
|
||||
|
||||
columnIndex++;
|
||||
|
Loading…
Reference in New Issue
Block a user