drop-overlay: Introduce GcalDropOverlay

A new widget to perform drag and drop operations, for example,
dropping ICS files to the GcalWindow. It allows to overlay
a child for visual feedback when a DnD operation is done.

either in the main window or in the import dialog,
depending on whether none could be imported, or just some
of them.

It is based on Loupe's DragOverlay widget.

Closes #1257
This commit is contained in:
Diego Iván
2024-08-05 12:31:31 -03:00
committed by Georges Basile Stavracas Neto
parent 75ad1425e7
commit dfc5a9b970
6 changed files with 622 additions and 156 deletions
+21
View File
@@ -483,3 +483,24 @@ menubutton stack > box {
syncindicator {
padding: 6px;
}
/*
* Styles for the drop overlay.
* From Amberol https://gitlab.gnome.org/World/amberol/-/blob/0dd6250ffd294b14532c428dcb76ae42086a5923/src/gtk/style.css
*/
/* Removes the default style */
.drop-target:drop(active) {
box-shadow: none;
}
/* Custom style for the drop overlay area */
.drop-overlay-area {
padding: 32px;
color: var(--accent-fg-color);
background-color: alpha(var(--accent-bg-color), 0.5);
}
.blurred {
filter: blur(6px);
}