[gnome-shell/eos3.8: 53/255] Remove Vignette effect from the overview
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 53/255] Remove Vignette effect from the overview
- Date: Wed, 10 Jun 2020 19:02:24 +0000 (UTC)
commit b818efd3363054772399feee5feb102a862a3433
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 a0a32a9320..f916ca2317 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -252,40 +252,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() {
const { hasOverview } = Main.sessionMode;
if (!hasOverview)
@@ -610,7 +581,6 @@ var Overview = class {
duration: ANIMATION_TIME,
onComplete: () => this._showDone(),
});
- this._shadeBackgrounds();
Main.layoutManager.overviewGroup.set_child_above_sibling(
this._coverPane, null);
@@ -674,7 +644,6 @@ var Overview = class {
duration: ANIMATION_TIME,
onComplete: () => this._hideDone(),
});
- this._unshadeBackgrounds();
Main.layoutManager.overviewGroup.set_child_above_sibling(
this._coverPane, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]