overview: Add OverviewActor and use as main actor of the Overlay

Use the Overview class as controller, while create the actual overlay actor
using a GObject-derived class.

Replace actual properties with getter-only properties.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559
This commit is contained in:
Marco Trevisan (Treviño)
2019-08-31 03:51:02 +02:00
committed by Florian Müllner
parent 4e1492c926
commit 91eb84fa4e
4 changed files with 90 additions and 58 deletions

View File

@ -229,8 +229,9 @@ class BaseAppView {
_doSpringAnimation(animationDirection) {
this._grid.opacity = 255;
this._grid.animateSpring(animationDirection,
Main.overview.getShowAppsButton());
this._grid.animateSpring(
animationDirection,
Main.overview.dash.showAppsButton);
}
animate(animationDirection, onComplete) {
@ -2260,7 +2261,7 @@ var AppIcon = class AppIcon {
}
getDragActor() {
return this.app.create_icon_texture(Main.overview.dashIconSize);
return this.app.create_icon_texture(Main.overview.dash.iconSize);
}
// Returns the original actor that should align with the actor