gnome-shell:gbsneto/icon-grid-dnd

Last commit made on 2019-08-02
Get this branch:
git clone -b gbsneto/icon-grid-dnd https://git.launchpad.net/gnome-shell

Branch merges

Branch information

Name:
gbsneto/icon-grid-dnd
Repository:
lp:gnome-shell

Recent commits

87a76a5... by Georges Basile Stavracas Neto

appDisplay: Close popup when dragging

When a drag starts inside a folder, and the cursor moves to
outside it, close the currently opened folder popup.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

717ec0f... by Georges Basile Stavracas Neto

folderView: Allow moving to specific position

As of now, the only way to add an app icon to a folder is
by dragging it to the folder icon itself. Even though we
allow opening the folder popup when hovering the icon,
dropping an app icon there wouldn't work.

Make the folder view add the app icon to it's GSettings
key (which will trigger _redisplay() and will show the
new icon) when dropping to a specific position.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

8549228... by Georges Basile Stavracas Neto

appIcon: Create and delete folders with DnD

Create a new folder when dropping an icon over another
icon. Try and find a good folder name by looking into
the categories of the applications.

Delete the folder when removing the last icon.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

40ad9ab... by Georges Basile Stavracas Neto

appIcon: Show folder preview when dragging over

WIP

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

55eb949... by Georges Basile Stavracas Neto

baseViewIcon: Introduce base class for view icons

Right now, only AppIcon supports being dragged. In the future,
however, both app and folder icons will be reorderable, and to
avoid copying the same code between FolderIcon and AppIcon,
add a new base class BaseViewIcon that contains the shared code
between them.

Adding this new base class also has the side effect that it
already allows for folder icons to be dragged, although full
support for that will come in next commits.

Because the Dash icons are not drop targets themselves, add a
tiny DashIcon class, which is an AppDisplay.AppIcon subclass,
and disable all DND drop code from it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

0596848... by Georges Basile Stavracas Neto

appIcon: Use a real BaseIcon as the drag actor

Moving an app icon to other positions is semantically different
to dragging an actor to the dash; the act of moving should itself
be semantic, in that we should feel like we are moving the actual
icon.

Currently, AppIcon gives the DnD code a simplified version of itself,
with just its icon, instead of a complete copy with the label.

Make AppIcon create a new IconGrid.BaseIcon and use it as the drag
actor.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

0bdcf29... by Georges Basile Stavracas Neto

iconGrid: Apply delay to easing state

Also following design suggestion, add a small delay to the icons
moving so as to give the impression that they're moving in order.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

ac3bc03... by Georges Basile Stavracas Neto

iconGrid: Implicitly animate icon positions

Add a proper easing state, and animate icon positions using
Clutter implicit animations.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

bf322cd... by Georges Basile Stavracas Neto

appIcon: Scale and fade itself when starting drag

As per design direction, scale and fade the app icon
when starting dragging it, and show it again if the
drop is accepted. Clutter takes care of animating the
rest of icon positions through implicit animations.

Scale and fade the dragged icon while it's being dragged.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

6e3696b... by Georges Basile Stavracas Neto

allView, folderView: Implement moving icons

This makes use of the new BaseAppIcon.moveItem() API.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603