[nautilus] css: Disable undersired drop feedback on views
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] css: Disable undersired drop feedback on views
- Date: Thu, 30 Jun 2022 17:41:23 +0000 (UTC)
commit 6ee09df4f15b9399f0ee4c87b8cb1abccaaa29c6
Author: António Fernandes <antoniof gnome org>
Date: Thu Jun 30 00:37:08 2022 +0100
css: Disable undersired drop feedback on views
While a view is accepting a drop hovering it, there is a blue ring, as
provided by libadwaita's stylesheet with a wildcard selector.
But this ring e partially hidden by the view's children and also clipped
by the window rounded corner.
There is a similar problem in list view cells, which get drop feedback
blue ring on each cell, instead of the whole row as we would prefer.
In all these cases, disable the blue ring with a specific selector.
src/resources/css/Adwaita.css | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index 47110f38e..ee95de54f 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -204,6 +204,11 @@
padding: 6px;
}
+/* We want drop feedback on the whole row. Disable per-cell feedback */
+.nautilus-list-view #NautilusViewCell:drop(active) {
+ box-shadow: none;
+}
+
.nautilus-list-view.compact #NautilusViewCell {
padding-top: 3px;
padding-bottom: 3px;
@@ -214,6 +219,11 @@
}
/* Both views */
+.nautilus-list-view:drop(active),
+.nautilus-grid-view:drop(active) {
+ box-shadow: none;
+}
+
.view .thumbnail {
background: url('/org/gnome/nautilus/Checkerboard.png') repeat;
box-shadow: 0px 1px 2px 0px @shade_color,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]