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
This commit is contained in:
parent
1e9b170d87
commit
0561af66e7
@ -244,11 +244,11 @@ var Overview = class {
|
|||||||
_unshadeBackgrounds() {
|
_unshadeBackgrounds() {
|
||||||
let backgrounds = this._backgroundGroup.get_children();
|
let backgrounds = this._backgroundGroup.get_children();
|
||||||
for (let i = 0; i < backgrounds.length; i++) {
|
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,
|
duration: SHADE_ANIMATION_TIME,
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
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,
|
duration: SHADE_ANIMATION_TIME,
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
});
|
});
|
||||||
@ -258,11 +258,13 @@ var Overview = class {
|
|||||||
_shadeBackgrounds() {
|
_shadeBackgrounds() {
|
||||||
let backgrounds = this._backgroundGroup.get_children();
|
let backgrounds = this._backgroundGroup.get_children();
|
||||||
for (let i = 0; i < backgrounds.length; i++) {
|
for (let i = 0; i < backgrounds.length; i++) {
|
||||||
backgrounds[i].ease_property('brightness', Lightbox.VIGNETTE_BRIGHTNESS, {
|
backgrounds[i].ease_property('@content.brightness',
|
||||||
|
Lightbox.VIGNETTE_BRIGHTNESS, {
|
||||||
duration: SHADE_ANIMATION_TIME,
|
duration: SHADE_ANIMATION_TIME,
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
});
|
});
|
||||||
backgrounds[i].ease_property('vignette-sharpness', Lightbox.VIGNETTE_SHARPNESS, {
|
backgrounds[i].ease_property('@content.vignette-sharpness',
|
||||||
|
Lightbox.VIGNETTE_SHARPNESS, {
|
||||||
duration: SHADE_ANIMATION_TIME,
|
duration: SHADE_ANIMATION_TIME,
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user