workspace-indicator: Use visible property to control edit mode
Using a 0 opacity and making the inactive actor non-reactive works, but is less obvious than properly hiding it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/429>
This commit is contained in:
@@ -417,7 +417,7 @@ class EditableMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
|
||||
this._entry = new St.Entry({
|
||||
opacity: 0,
|
||||
reactive: false,
|
||||
visible: false,
|
||||
});
|
||||
stack.add_child(this._entry);
|
||||
|
||||
@@ -466,7 +466,7 @@ class EditableMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
}
|
||||
|
||||
_switchActor(from, to) {
|
||||
to.reactive = true;
|
||||
to.visible = from.visible = true;
|
||||
to.ease({
|
||||
opacity: 255,
|
||||
duration: 300,
|
||||
@@ -478,7 +478,7 @@ class EditableMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
duration: 300,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
onComplete: () => {
|
||||
from.reactive = false;
|
||||
from.visible = false;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user