From 31d59256ed9f7095e100592a2c40b484f11786db Mon Sep 17 00:00:00 2001 From: Alexander Schwinn <alexxcons@xfce.org> Date: Sat, 1 Apr 2023 22:37:32 +0200 Subject: [PATCH] Keep alpha when cutting read-only files (#1060) --- thunar/thunar-icon-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thunar/thunar-icon-renderer.c b/thunar/thunar-icon-renderer.c index 797b05f78..6496265d6 100644 --- a/thunar/thunar-icon-renderer.c +++ b/thunar/thunar-icon-renderer.c @@ -530,7 +530,7 @@ thunar_icon_renderer_render (GtkCellRenderer *renderer, { /* use a translucent icon to represent cutted and hidden files to the user */ clipboard = thunar_clipboard_manager_get_for_display (gtk_widget_get_display (widget)); - if (thunar_clipboard_manager_has_cutted_file (clipboard, icon_renderer->file)) + if (thunar_clipboard_manager_has_cutted_file (clipboard, icon_renderer->file) && thunar_file_is_writable (icon_renderer->file)) { /* 50% translucent for cutted files */ alpha = 0.50; -- GitLab