[gnome-shell/gbsneto/40-stuff: 35/68] overview: Don't fade OverviewActor
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/40-stuff: 35/68] overview: Don't fade OverviewActor
- Date: Wed, 20 Jan 2021 22:41:07 +0000 (UTC)
commit 5429c74e9971abbf2dbf51b9e424bf523e0ea281
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 1 14:18:18 2021 -0300
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.
js/ui/overview.js | 19 ++-----------------
js/ui/overviewControls.js | 6 ++++--
2 files changed, 6 insertions(+), 19 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index c232d6fb95..2c3bb50f1d 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -97,26 +97,11 @@ class OverviewActor extends St.BoxLayout {
}
animateToOverview(onComplete) {
- this._controls.animateToOverview();
-
- this.opacity = 255;
- this.ease({
- opacity: 255,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- duration: ANIMATION_TIME,
- onComplete,
- });
+ this._controls.animateToOverview(onComplete);
}
animateFromOverview(onComplete) {
- this._controls.animateFromOverview();
-
- this.ease({
- opacity: 0,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- duration: ANIMATION_TIME,
- onComplete,
- });
+ this._controls.animateFromOverview(onComplete);
}
get dash() {
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index 54be8a435d..73381144f9 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -216,17 +216,18 @@ class ControlsManager extends St.Widget {
this._workspaceAdjustment.value = activeIndex;
}
- animateToOverview() {
+ animateToOverview(onComplete) {
this.viewSelector.animateToOverview();
this._adjustment.value = ControlsState.HIDDEN;
this._adjustment.ease(ControlsState.WINDOW_PICKER, {
duration: SIDE_CONTROLS_ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete,
});
}
- animateFromOverview() {
+ animateFromOverview(onComplete) {
this._animating = true;
this.viewSelector.animateFromOverview();
@@ -238,6 +239,7 @@ class ControlsManager extends St.Widget {
this.dash.showAppsButton.checked = false;
this._animating = false;
},
+ onComplete,
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]