From 099a88cc16744c05466bf1d18577aa8f9d890009 Mon Sep 17 00:00:00 2001 From: Elizaveta Ragozina Date: Mon, 8 Nov 2021 08:53:12 +0100 Subject: [PATCH] Icons --- .../src/fileTypeIconMappings.json | 85 ++++++++++--------- .../web-app-files/src/helpers/resources.js | 2 +- 2 files changed, 47 insertions(+), 40 deletions(-) diff --git a/packages/web-app-files/src/fileTypeIconMappings.json b/packages/web-app-files/src/fileTypeIconMappings.json index e012e230316..1d2b3e8ffa8 100644 --- a/packages/web-app-files/src/fileTypeIconMappings.json +++ b/packages/web-app-files/src/fileTypeIconMappings.json @@ -1,6 +1,6 @@ { "7z": "package-x-generic", - "accdb": "file", + "accdb": "file_fill", "ai": "image", "apk": "package-x-generic", "bash": "text-code", @@ -15,16 +15,17 @@ "cdr": "image", "cpp": "text-code", "css": "text-code", - "csv": "x-office-spreadsheet", + "csv": "x-office-spreadsheet_fill", "cvbdl": "text", "c": "text-code", "c++": "text-code", "deb": "package-x-generic", - "doc": "x-office-document", - "docm": "x-office-document", - "docx": "x-office-document", - "dot": "x-office-document", - "dotx": "x-office-document", + "doc": "docx_fill", + "docm": "docx_fill", + "docx": "docx_fill", + "dot": "docx_fill", + "dotx": "docx_fill", + "drawio": "drawio_fill", "eml": "text", "eot": "image", "epub": "text", @@ -36,42 +37,47 @@ "hpp": "text-code", "html": "text-code", "htm": "text-code", + "ifc": "file_fill", + "ipynb": "jupyter_fill", "java": "text-code", "js": "text-code", "json": "text-code", "jpeg": "image", "jpg": "image", - "lwp": "x-office-document", - "mdb": "file", - "odp": "x-office-presentation", - "ods": "x-office-spreadsheet", - "odt": "x-office-document", - "one": "x-office-document", + "jpi": "jupyter_fill", + "lwp": "x-office-document_fill", + "md": "x-office-document_fill", + "mdb": "x-office-document_fill", + "odp": "x-office-presentation_fill", + "ods": "x-office-spreadsheet_fill", + "odt": "x-office-document_fill", + "one": "x-office-document_fill", "otf": "image", - "pdf": "application-pdf", + "pdf": "pdf_fill", "pfb": "image", "php": "text-code", "pl": "text-code", "png": "image", - "pot": "x-office-presentation", - "potm": "x-office-presentation", - "potx": "x-office-presentation", - "ppa": "x-office-presentation", - "ppam": "x-office-presentation", - "pps": "x-office-presentation", - "ppsm": "x-office-presentation", - "ppsx": "x-office-presentation", - "ppt": "x-office-presentation", - "pptm": "x-office-presentation", - "pptx": "x-office-presentation", + "pot": "pptx_fill", + "potm": "pptx_fill", + "potx": "pptx_fill", + "ppa": "pptx_fill", + "ppam": "pptx_fill", + "pps": "pptx_fill", + "ppsm": "pptx_fill", + "ppsx": "pptx_fill", + "ppt": "pptx_fill", + "pptm": "pptx_fill", + "pptx": "pptx_fill", "ps": "image", "psd": "image", "py": "text-code", "rar": "package-x-generic", - "rss": "file", + "root": "root_fill", + "rss": "file_fill", "sh-lib": "text-code", "sh": "text-code", - "swf": "file", + "swf": "file_fill", "tar": "package-x-generic", "tar.bz2": "package-x-generic", "tar.gz": "package-x-generic", @@ -79,21 +85,22 @@ "tex": "text", "tgz": "package-x-generic", "ttf": "image", - "vsd": "x-office-document", + "txt": "x-office-document_fill", + "vsd": "x-office-document_fill", "woff": "image", - "wpd": "x-office-document", + "wpd": "x-office-document_fill", "xcf": "image", - "xla": "x-office-spreadsheet", - "xlam": "x-office-spreadsheet", - "xls": "x-office-spreadsheet", - "xlsb": "x-office-spreadsheet", - "xlsm": "x-office-spreadsheet", - "xlsx": "x-office-spreadsheet", - "xlt": "x-office-spreadsheet", - "xltm": "x-office-spreadsheet", - "xltx": "x-office-spreadsheet", + "xla": "x-office-spreadsheet_fill", + "xlam": "x-office-spreadsheet_fill", + "xls": "xlsx_fill", + "xlsb": "xlsx_fill", + "xlsm": "xlsx_fill", + "xlsx": "xlsx_fill", + "xlt": "xlsx_fill", + "xltm": "xlsx_fill", + "xltx": "xlsx_fill", "xml": "text-code", "yaml": "text-code", "yml": "text-code", "zip": "package-x-generic" -} +} \ No newline at end of file diff --git a/packages/web-app-files/src/helpers/resources.js b/packages/web-app-files/src/helpers/resources.js index 8a445a5f17c..b4d2a5003e4 100644 --- a/packages/web-app-files/src/helpers/resources.js +++ b/packages/web-app-files/src/helpers/resources.js @@ -18,7 +18,7 @@ export function getFileIcon(extension) { return icon } - return 'file' + return 'file_fill' } function _getFileExtension(name) {