[gnome-shell/T27795: 67/138] Remove Vignette effect from the overview



commit c1f77c588ac3db619d3b25904116598a4cd59876
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Wed May 24 13:57:07 2017 +0100

    Remove Vignette effect from the overview
    
    On Endless we are most of the time in the Overview (we start up into it!),
    so we don't want the Vignette effect from upstream GNOME Shell, that would
    obscure the whole desktop otherwise.

 js/ui/overview.js | 33 +--------------------------------
 1 file changed, 1 insertion(+), 32 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 9bdee7c696..6ca8fb994c 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -182,40 +182,11 @@ var Overview = class {
 
         for (let i = 0; i < Main.layoutManager.monitors.length; i++) {
             let bgManager = new Background.BackgroundManager({ container: this._backgroundGroup,
-                                                               monitorIndex: i,
-                                                               vignette: true });
+                                                               monitorIndex: i });
             this._bgManagers.push(bgManager);
         }
     }
 
-    _unshadeBackgrounds() {
-        let backgrounds = this._backgroundGroup.get_children();
-        for (let i = 0; i < backgrounds.length; i++) {
-            backgrounds[i].ease_property('brightness', 1.0, {
-                duration: SHADE_ANIMATION_TIME,
-                mode: Clutter.AnimationMode.EASE_OUT_QUAD
-            });
-            backgrounds[i].ease_property('vignette-sharpness', 0.0, {
-                duration: SHADE_ANIMATION_TIME,
-                mode: Clutter.AnimationMode.EASE_OUT_QUAD
-            });
-        }
-    }
-
-    _shadeBackgrounds() {
-        let backgrounds = this._backgroundGroup.get_children();
-        for (let i = 0; i < backgrounds.length; i++) {
-            backgrounds[i].ease_property('brightness', Lightbox.VIGNETTE_BRIGHTNESS, {
-                duration: SHADE_ANIMATION_TIME,
-                mode: Clutter.AnimationMode.EASE_OUT_QUAD
-            });
-            backgrounds[i].ease_property('vignette-sharpness', Lightbox.VIGNETTE_SHARPNESS, {
-                duration: SHADE_ANIMATION_TIME,
-                mode: Clutter.AnimationMode.EASE_OUT_QUAD
-            });
-        }
-    }
-
     _sessionUpdated() {
         this.isDummy = !Main.sessionMode.hasOverview;
         this._createOverview();
@@ -565,7 +536,6 @@ var Overview = class {
             duration: ANIMATION_TIME,
             onComplete: () => this._showDone()
         });
-        this._shadeBackgrounds();
 
         this._coverPane.raise_top();
         this._coverPane.show();
@@ -628,7 +598,6 @@ var Overview = class {
             duration: ANIMATION_TIME,
             onComplete: () => this._hideDone()
         });
-        this._unshadeBackgrounds();
 
         this._coverPane.raise_top();
         this._coverPane.show();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]