From: Olivier Paroz Date: Tue, 2 Dec 2014 20:11:56 +0000 (+0100) Subject: Improve the bitmap and vector mime icons X-Git-Tag: v8.0.0alpha1~168^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5990293331091b12549dc4a4be43608b5976763b;p=nextcloud-server.git Improve the bitmap and vector mime icons * Vector files such as Illustrator files currently show the "image" icon. I propose to add a new type to mimetypeIcon() called "image/vector" and which would be used by SVG as well * We can use the current image-svg+xml icon, but would simply rename it to image-vector * The black and white "image" icon looks too much like a settings icon. A simple picture representation pasted over the file icon should work --- diff --git a/core/img/filetypes/image-svg+xml.png b/core/img/filetypes/image-svg+xml.png deleted file mode 100644 index a847f78fcd8..00000000000 Binary files a/core/img/filetypes/image-svg+xml.png and /dev/null differ diff --git a/core/img/filetypes/image-svg+xml.svg b/core/img/filetypes/image-svg+xml.svg deleted file mode 100644 index 1f0a54a21ca..00000000000 --- a/core/img/filetypes/image-svg+xml.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/core/img/filetypes/image-vector.png b/core/img/filetypes/image-vector.png new file mode 100644 index 00000000000..a847f78fcd8 Binary files /dev/null and b/core/img/filetypes/image-vector.png differ diff --git a/core/img/filetypes/image-vector.svg b/core/img/filetypes/image-vector.svg new file mode 100644 index 00000000000..1f0a54a21ca --- /dev/null +++ b/core/img/filetypes/image-vector.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/img/filetypes/image.png b/core/img/filetypes/image.png index 5cdc05029af..a03eea937d8 100644 Binary files a/core/img/filetypes/image.png and b/core/img/filetypes/image.png differ diff --git a/core/img/filetypes/image.svg b/core/img/filetypes/image.svg index 86cbb633bf3..ed2e349d8d9 100644 --- a/core/img/filetypes/image.svg +++ b/core/img/filetypes/image.svg @@ -1,57 +1,169 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/private/helper.php b/lib/private/helper.php index 0e302275540..fb4ddfae3b7 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -158,7 +158,10 @@ class OC_Helper { $alias = array( 'application/octet-stream' => 'file', // use file icon as fallback - 'application/illustrator' => 'image', + 'application/illustrator' => 'image/vector', + 'application/postscript' => 'image/vector', + 'image/svg+xml' => 'image/vector', + 'application/coreldraw' => 'image', 'application/x-gimp' => 'image', 'application/x-photoshop' => 'image',