From 5990293331091b12549dc4a4be43608b5976763b Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Tue, 2 Dec 2014 21:11:56 +0100 Subject: [PATCH] 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 --- .../{image-svg+xml.png => image-vector.png} | Bin .../{image-svg+xml.svg => image-vector.svg} | 0 core/img/filetypes/image.png | Bin 903 -> 769 bytes core/img/filetypes/image.svg | 222 +++++++++++++----- lib/private/helper.php | 5 +- 5 files changed, 171 insertions(+), 56 deletions(-) rename core/img/filetypes/{image-svg+xml.png => image-vector.png} (100%) rename core/img/filetypes/{image-svg+xml.svg => image-vector.svg} (100%) diff --git a/core/img/filetypes/image-svg+xml.png b/core/img/filetypes/image-vector.png similarity index 100% rename from core/img/filetypes/image-svg+xml.png rename to core/img/filetypes/image-vector.png diff --git a/core/img/filetypes/image-svg+xml.svg b/core/img/filetypes/image-vector.svg similarity index 100% rename from core/img/filetypes/image-svg+xml.svg rename to core/img/filetypes/image-vector.svg diff --git a/core/img/filetypes/image.png b/core/img/filetypes/image.png index 5cdc05029af7048f6283b756ddbead27bf7367ca..a03eea937d8dfe17e0ea19d26462053690a663ba 100644 GIT binary patch delta 756 zcmVMzCV_|S*E^l&Yo9;Xs0007hNklpfTs#LHZ)PFixc09yw*WKC8CObmD+s^L$-jDZY-XsJX zB@&6%U@#cfuJcg2T+U~+*^GKk)P58Q1R}{~@+KjKYjR2{(&=G7pf3uZ%Jm|sDuw?k237}Nq zOLY&=Qm<_REI+;kf6!xCQNumJs}0?}bO1&H{*V_lH^T7vTwEbcTc89?UkKn{Y94|> zaDBOrNAXR3t^Tl`9585sR;MqYf*^DTlPEe6ojqwOxqlVu0My4&p?;Gqpxtf*0DjjS z*m_yAoIvem`50;eiuqlv-F|_|sZo4*yMy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/img/filetypes/image.svg b/core/img/filetypes/image.svg index 86cbb633bf..ed2e349d8d 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 0e30227554..fb4ddfae3b 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',