viewSelector: Tie workspace fit mode to adjustment
Tie the fit mode adjustment of WorkspacesDisplay to the state adjustment of AppPagesContainer, and transition to the ALL fit mode when the app grid is visible. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1613>
This commit is contained in:
parent
26c5434222
commit
1359b272a4
@ -181,6 +181,12 @@ class ActivitiesContainer extends St.Widget {
|
||||
opacity: Util.lerp(0, 255, 1 - progress),
|
||||
visible: (1 - progress) !== 0,
|
||||
});
|
||||
|
||||
const { fitModeAdjustment } = this._workspacesDisplay;
|
||||
fitModeAdjustment.value = Util.lerp(
|
||||
WorkspacesView.FitMode.SINGLE,
|
||||
WorkspacesView.FitMode.ALL,
|
||||
progress);
|
||||
}
|
||||
|
||||
_getWorkspacesBoxes(box, thumbnailsHeight) {
|
||||
|
@ -967,4 +967,8 @@ class WorkspacesDisplay extends St.Widget {
|
||||
Main.wm.actionMoveWorkspace(ws);
|
||||
return Clutter.EVENT_STOP;
|
||||
}
|
||||
|
||||
get fitModeAdjustment() {
|
||||
return this._fitModeAdjustment;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user