mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
appDisplay: Hide folder icon when dialog is open
In such a way that gives the illusion of the icon becoming the dialog itself. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301
This commit is contained in:
parent
85e055ffe3
commit
3d6add68c7
1 changed files with 12 additions and 0 deletions
|
|
@ -1391,6 +1391,18 @@ var FolderIcon = GObject.registerClass({
|
|||
this._parentView);
|
||||
this._parentView.addFolderDialog(this._dialog);
|
||||
this._dialog.connect('open-state-changed', (popup, isOpen) => {
|
||||
const duration = FOLDER_DIALOG_ANIMATION_TIME / 2;
|
||||
const mode = isOpen
|
||||
? Clutter.AnimationMode.EASE_OUT_QUAD
|
||||
: Clutter.AnimationMode.EASE_IN_QUAD;
|
||||
|
||||
this.ease({
|
||||
opacity: isOpen ? 0 : 255,
|
||||
duration,
|
||||
mode,
|
||||
delay: isOpen ? 0 : FOLDER_DIALOG_ANIMATION_TIME - duration,
|
||||
});
|
||||
|
||||
if (!isOpen)
|
||||
this.checked = false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue