overview: Implement startup animation
The new startup animation consists of rising the Dash from the bottom, falling the search entry from the ceiling, and going from HIDDEN to WINDOW_PICKER with an opacity applied. One little trick from IconGridLayout was added to ControlsManagerLayout, which is a promises-based wait for allocation. This is required to make sure that the transformed position of the search entry is valid, which is only the case right after an allocation. This animation also ensures that the overview is shown right on startup. For session modes that do not have an overview, continue using the same fade + scale animation. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1678>
This commit is contained in:

committed by
Marge Bot

parent
930d0b6151
commit
c4e43efb1e
@ -107,6 +107,10 @@ class OverviewActor extends St.BoxLayout {
|
||||
this._controls.animateFromOverview(callback);
|
||||
}
|
||||
|
||||
runStartupAnimation(callback) {
|
||||
this._controls.runStartupAnimation(callback);
|
||||
}
|
||||
|
||||
get dash() {
|
||||
return this._controls.dash;
|
||||
}
|
||||
@ -647,6 +651,23 @@ var Overview = class {
|
||||
this._show(OverviewControls.ControlsState.APP_GRID);
|
||||
}
|
||||
|
||||
runStartupAnimation(callback) {
|
||||
this._shown = true;
|
||||
this._visible = true;
|
||||
this._visibleTarget = true;
|
||||
Main.layoutManager.showOverview();
|
||||
this._syncGrab();
|
||||
|
||||
Meta.disable_unredirect_for_display(global.display);
|
||||
|
||||
this.emit('showing');
|
||||
|
||||
this._overview.runStartupAnimation(() => {
|
||||
this.emit('shown');
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
getShowAppsButton() {
|
||||
logError(new Error('Usage of Overview.\'getShowAppsButton\' is deprecated, ' +
|
||||
'use \'dash.showAppsButton\' property instead'));
|
||||
|
Reference in New Issue
Block a user