overview: Don't fade OverviewActor
Now that the workspace display is properly allocated for each frame, we don't want to fade the entire overview anymore. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:
parent
b6337a7bf1
commit
1ad1db406e
@ -98,32 +98,11 @@ class OverviewActor extends St.BoxLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
animateToOverview(callback) {
|
animateToOverview(callback) {
|
||||||
this._controls.animateToOverview();
|
this._controls.animateToOverview(callback);
|
||||||
|
|
||||||
this.opacity = 0;
|
|
||||||
this.ease({
|
|
||||||
opacity: 255,
|
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
|
||||||
duration: ANIMATION_TIME,
|
|
||||||
onStopped: () => {
|
|
||||||
if (callback)
|
|
||||||
callback();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
animateFromOverview(callback) {
|
animateFromOverview(callback) {
|
||||||
this._controls.animateFromOverview();
|
this._controls.animateFromOverview(callback);
|
||||||
|
|
||||||
this.ease({
|
|
||||||
opacity: 0,
|
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
|
||||||
duration: ANIMATION_TIME,
|
|
||||||
onStopped: () => {
|
|
||||||
if (callback)
|
|
||||||
callback();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get dash() {
|
get dash() {
|
||||||
|
@ -177,17 +177,21 @@ class ControlsManager extends St.Widget {
|
|||||||
this._workspaceAdjustment.value = activeIndex;
|
this._workspaceAdjustment.value = activeIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
animateToOverview() {
|
animateToOverview(callback) {
|
||||||
this.viewSelector.animateToOverview();
|
this.viewSelector.animateToOverview();
|
||||||
|
|
||||||
this._stateAdjustment.value = ControlsState.HIDDEN;
|
this._stateAdjustment.value = ControlsState.HIDDEN;
|
||||||
this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
|
this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
|
||||||
duration: Overview.ANIMATION_TIME,
|
duration: Overview.ANIMATION_TIME,
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
onStopped: () => {
|
||||||
|
if (callback)
|
||||||
|
callback();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
animateFromOverview() {
|
animateFromOverview(callback) {
|
||||||
this._ignoreShowAppsButtonToggle = true;
|
this._ignoreShowAppsButtonToggle = true;
|
||||||
|
|
||||||
this.viewSelector.animateFromOverview();
|
this.viewSelector.animateFromOverview();
|
||||||
@ -198,6 +202,9 @@ class ControlsManager extends St.Widget {
|
|||||||
onStopped: () => {
|
onStopped: () => {
|
||||||
this.dash.showAppsButton.checked = false;
|
this.dash.showAppsButton.checked = false;
|
||||||
this._ignoreShowAppsButtonToggle = false;
|
this._ignoreShowAppsButtonToggle = false;
|
||||||
|
|
||||||
|
if (callback)
|
||||||
|
callback();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user