window: Remove default drop target style

The default does not fit well with our new custom one.

This also removes a bunch of code which was not used.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/258>
This commit is contained in:
Sophie Herold 2023-07-15 20:43:01 +02:00
parent cf8fa499d9
commit 08a9c3e450
4 changed files with 24 additions and 29 deletions

View file

@ -169,12 +169,9 @@
<property name="reveal-flap" bind-source="properties_button" bind-property="active" bind-flags="bidirectional|sync-create"/>
<property name="content">
<object class="LpDragOverlay" id="drag_overlay">
<property name="drop_target">drop_target</property>
<property name="overlayed">
<object class="AdwBin">
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="margin-start">24</property>
<property name="margin-end">24</property>
<property name="can-target">false</property>
<style>
<class name="lp-dragging-area-highlight"/>
@ -185,6 +182,9 @@
<object class="GtkStack" id="stack">
<property name="visible-child">status_page</property>
<property name="vexpand">True</property>
<style>
<class name="drop-widget" />
</style>
<child>
<object class="GtkDropTarget" id="drop_target">
<property name="actions">copy</property>

View file

@ -31,17 +31,21 @@ row.property label.subtitle {
box-shadow: 0 0 10px rgba(0, 0, 0, 200);
}
.custom-drag-n-drop-highlight {
/* Remove default adwaita style */
.drop-widget:drop(active):focus,
.drop-widget:drop(active) {
box-shadow: none;
}
/* Drag overlay */
.lp-dragging-area-highlight {
border-radius: 8px;
background-color: alpha(@blue_2, 0.35);
margin: 24px;
}
lpprintpreview {
background-color: rgb(240, 240, 240);
border-radius: 4px;
box-shadow: 0 0 14px 1px black;
}
}