diff options
author | Olivier Paroz <github@oparoz.com> | 2014-12-02 21:11:56 +0100 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2014-12-02 21:11:56 +0100 |
commit | 5990293331091b12549dc4a4be43608b5976763b (patch) | |
tree | 08348c26ae269badd4bc9576355c922928275cd9 /lib/private/helper.php | |
parent | e9029f94cb6eb9b37623ea1a2faf8aac11675900 (diff) | |
download | nextcloud-server-5990293331091b12549dc4a4be43608b5976763b.tar.gz nextcloud-server-5990293331091b12549dc4a4be43608b5976763b.zip |
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
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 5 |
1 files changed, 4 insertions, 1 deletions
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', |