From 714b2e851734447a6701af88fc56091a3d75d7c1 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 14:49:57 +0200 Subject: trash icons --- loggedin.js | 5 ++++- mimeicons/user-trash-full.png | Bin 0 -> 4570 bytes mimeicons/user-trash.png | Bin 0 -> 3517 bytes 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 mimeicons/user-trash-full.png create mode 100644 mimeicons/user-trash.png diff --git a/loggedin.js b/loggedin.js index 0f51c1b..eba58ba 100644 --- a/loggedin.js +++ b/loggedin.js @@ -393,7 +393,10 @@ function add_file_visuals(fileview) { var filename = document.createElement('div'); if (fileview.is_directory) { - img.src="/mimeicons/directory.png"; + if (fileview.filename == "trash") + img.src="/mimeicons/user-trash.png"; + else + img.src="/mimeicons/directory.png"; } else { img.src=`/mimeicons/${fileview.mimetype.replace("/", "-")}.png`; } diff --git a/mimeicons/user-trash-full.png b/mimeicons/user-trash-full.png new file mode 100644 index 0000000..fe995e2 Binary files /dev/null and b/mimeicons/user-trash-full.png differ diff --git a/mimeicons/user-trash.png b/mimeicons/user-trash.png new file mode 100644 index 0000000..05c605c Binary files /dev/null and b/mimeicons/user-trash.png differ -- cgit v1.2.3