[nautilus/wip/antoniof/hidpi-and-icons-cleanup: 3/5] dnd: Drop excessive rounded clip
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/hidpi-and-icons-cleanup: 3/5] dnd: Drop excessive rounded clip
- Date: Wed, 10 Aug 2022 12:56:48 +0000 (UTC)
commit a7ed24e09de2598d401ce1a971280a57349d760a
Author: António Fernandes <antoniof gnome org>
Date: Wed Aug 10 11:49:36 2022 +0100
dnd: Drop excessive rounded clip
It's inconsistent with the view. The motivation was making it easier
to tell each thumbnail appart. But we are going to use another
solution to that problem.
src/nautilus-dnd.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/src/nautilus-dnd.c b/src/nautilus-dnd.c
index e0f4a7177..131493c5d 100644
--- a/src/nautilus-dnd.c
+++ b/src/nautilus-dnd.c
@@ -236,7 +236,6 @@ get_paintable_for_drag_selection (GList *selection,
GskShadow stack_shadow = {.color = {0, 0, 0, .alpha = 0.15}, .dx = 0, .dy = 2, .radius = 10 };
/* A slight shadow swhich makes each icon in the stack look separate. */
GskShadow icon_shadow = {.color = {0, 0, 0, .alpha = 0.20}, .dx = 0, .dy = 1, .radius = 1 };
- GskRoundedRect rounded_rect;
g_return_val_if_fail (NAUTILUS_IS_FILE (selection->data), NULL);
@@ -286,17 +285,14 @@ get_paintable_for_drag_selection (GList *selection,
/* Offsets needed to center thumbnails. Floored to keep images sharp. */
float x = floor ((icon_size - w) / 2);
float y = floor ((icon_size - h) / 2);
- gsk_rounded_rect_init_from_rect (&rounded_rect, &GRAPHENE_RECT_INIT (0, 0, w, h), 6);
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (0, -dy));
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (x, y));
gtk_snapshot_push_shadow (snapshot, &icon_shadow, 1);
- gtk_snapshot_push_rounded_clip (snapshot, &rounded_rect);
gdk_paintable_snapshot (l->data, snapshot, w, h);
- gtk_snapshot_pop (snapshot); /* End of rounded clip */
gtk_snapshot_pop (snapshot); /* End of icon shadow */
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (-x, -y));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]