aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-13 14:49:57 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-13 14:49:57 +0200
commit714b2e851734447a6701af88fc56091a3d75d7c1 (patch)
treedac55d5b28dbb453faef02dfd1a87a13cd40366c
parent32c7c9fa90212e9743573604672e893c4f9e8109 (diff)
downloadfileup-714b2e851734447a6701af88fc56091a3d75d7c1.tar.gz
trash icons
-rw-r--r--loggedin.js5
-rw-r--r--mimeicons/user-trash-full.pngbin0 -> 4570 bytes
-rw-r--r--mimeicons/user-trash.pngbin0 -> 3517 bytes
3 files changed, 4 insertions, 1 deletions
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
--- /dev/null
+++ b/mimeicons/user-trash-full.png
Binary files differ
diff --git a/mimeicons/user-trash.png b/mimeicons/user-trash.png
new file mode 100644
index 0000000..05c605c
--- /dev/null
+++ b/mimeicons/user-trash.png
Binary files differ