[gnome-shell/gbsneto/background-content: 2/2] overview: Adapt to MetaBackgroundContent
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/background-content: 2/2] overview: Adapt to MetaBackgroundContent
- Date: Tue, 9 Jun 2020 18:56:53 +0000 (UTC)
commit 8ec56b2d58d4fb7519837f23f5b1962dcc15034f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jun 9 15:51:14 2020 -0300
overview: Adapt to MetaBackgroundContent
The properties are now defined in MetaBackgroundContent.
Animate the ClutterContent properties.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1309
js/ui/overview.js | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index f77816080e..c5adf8e7d0 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -244,11 +244,11 @@ var Overview = class {
_unshadeBackgrounds() {
let backgrounds = this._backgroundGroup.get_children();
for (let i = 0; i < backgrounds.length; i++) {
- backgrounds[i].ease_property('brightness', 1.0, {
+ backgrounds[i].ease_property('@content.brightness', 1.0, {
duration: SHADE_ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
- backgrounds[i].ease_property('vignette-sharpness', 0.0, {
+ backgrounds[i].ease_property('@content.vignette-sharpness', 0.0, {
duration: SHADE_ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
@@ -258,14 +258,16 @@ var Overview = class {
_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,
- });
+ backgrounds[i].ease_property('@content.brightness',
+ Lightbox.VIGNETTE_BRIGHTNESS, {
+ duration: SHADE_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ backgrounds[i].ease_property('@content.vignette-sharpness',
+ Lightbox.VIGNETTE_SHARPNESS, {
+ duration: SHADE_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]