workspace: Transition the desktop layer to opacity 0 when going into overview

As requested by the design team, fade DESKTOP type windows to opacity 0 when
in the window picker view of the overview, to present a simplified interface
to the user.
This commit is contained in:
Sundeep Mediratta 2024-02-16 18:46:40 -05:00
parent 7889ae0838
commit 99142f909e

View file

@ -1041,6 +1041,10 @@ class WorkspaceBackground extends Shell.WorkspaceBackground {
this._desktopLayer.add_constraint(syncAll);
this._backgroundGroup.insert_child_above(this._desktopLayer,
this._bgManager.backgroundActor);
this._desktopLayer.opacity = Util.lerp(255, 0, this._stateAdjustment.value);
this._stateAdjustment.connectObject('notify::value', () => {
this._desktopLayer.opacity = Util.lerp(255, 0, this._stateAdjustment.value);
}, this);
}
_updateBorderRadius() {