[feat] add blue highlight for drop area
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
<child>
|
||||
<object class="GtkListBoxRow" id="remote_device_row">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">false</property>
|
||||
<property name="activatable">false</property>
|
||||
<property name="selectable">false</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="activatable">True</property>
|
||||
<property name="selectable">True</property>
|
||||
<child>
|
||||
<object class="GtkGrid">
|
||||
<property name="visible">True</property>
|
||||
|
||||
@@ -6,3 +6,10 @@
|
||||
frame, list, border {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
:not(decoration):not(window):drop(active):focus, :not(decoration):not(window):drop(active) {
|
||||
border-color: #4A90D9;
|
||||
box-shadow: inset 0 0 0 1px #4A90D9;
|
||||
caret-color: #4A90D9;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@@ -338,8 +338,9 @@ teleport_remote_device_init (TeleportRemoteDevice *self)
|
||||
/* Make the widget a DnD destination. */
|
||||
gtk_drag_dest_set
|
||||
(
|
||||
GTK_WIDGET (self), /* widget that will accept a drop */
|
||||
GTK_DEST_DEFAULT_ALL,
|
||||
GTK_WIDGET (self->remote_device_row), /* widget that will accept a drop */
|
||||
GTK_DEST_DEFAULT_MOTION /* default actions for dest on DnD */
|
||||
| GTK_DEST_DEFAULT_HIGHLIGHT,
|
||||
target_list, /* lists of target to support */
|
||||
n_targets, /* size of list */
|
||||
GDK_ACTION_COPY /* what to do with data after dropped */
|
||||
|
||||
Reference in New Issue
Block a user