[gnome-shell/gbsneto/folders-as-dialogs: 12/12] appDisplay: Hide search when showing app folder dialogs
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/folders-as-dialogs: 12/12] appDisplay: Hide search when showing app folder dialogs
- Date: Thu, 9 Jan 2020 20:56:06 +0000 (UTC)
commit da074f66003ca2edc4ebec1a0e00b27de52309f7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Jan 9 17:44:22 2020 -0300
appDisplay: Hide search when showing app folder dialogs
Also following design guidance, hide the search entry when showing
an app folder dialog.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/896
js/ui/appDisplay.js | 9 +++++++++
js/ui/overview.js | 4 ++++
2 files changed, 13 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index f5891b7a13..a31944b821 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -710,6 +710,15 @@ var AllView = GObject.registerClass({
this._eventBlocker.visible = false;
});
}
+
+ // Toggle search entry
+ Main.overview.searchEntry.reactive = !isOpen;
+ Main.overview.searchEntry.ease({
+ opacity: isOpen ? 0 : 255,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
this._displayingPopup = isOpen;
});
}
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 3f22a47b4e..82c326b105 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -689,5 +689,9 @@ var Overview = class {
return this.dash.showAppsButton;
}
+
+ get searchEntry() {
+ return this._overview.searchEntry;
+ }
};
Signals.addSignalMethods(Overview.prototype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]