diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2024-03-21 10:45:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 10:45:50 -0700 |
commit | 45efd28db7f1dfdb58d8d51513a68790e4d7d612 (patch) | |
tree | 86f8cd08154cd3d4cc15382f2de9ec54d156b718 /core | |
parent | a7dfec070a1dda79ade7cfea91b3dc7e74d184a6 (diff) | |
parent | 799347164f176448ad116f4faf9620fd333a407c (diff) | |
download | nextcloud-server-45efd28db7f1dfdb58d8d51513a68790e4d7d612.tar.gz nextcloud-server-45efd28db7f1dfdb58d8d51513a68790e4d7d612.zip |
Merge pull request #44368 from nextcloud/feat/new-file-menu-icon-svg
feat: Add new mdi New file menu icons
Diffstat (limited to 'core')
-rw-r--r-- | core/img/actions/add-folder-description.svg | 4 | ||||
-rw-r--r-- | core/img/filetypes/text.svg | 6 | ||||
-rw-r--r-- | core/img/filetypes/x-office-document.svg | 6 | ||||
-rw-r--r-- | core/img/filetypes/x-office-drawing.svg | 5 | ||||
-rw-r--r-- | core/img/filetypes/x-office-presentation.svg | 5 | ||||
-rw-r--r-- | core/img/filetypes/x-office-spreadsheet.svg | 5 | ||||
-rw-r--r-- | core/src/icons.js | 9 |
7 files changed, 34 insertions, 6 deletions
diff --git a/core/img/actions/add-folder-description.svg b/core/img/actions/add-folder-description.svg new file mode 100644 index 00000000000..0089638d9b7 --- /dev/null +++ b/core/img/actions/add-folder-description.svg @@ -0,0 +1,4 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="#000000"> + <path d="M0 0h24v24H0V0z" fill="none" /> + <path fill="#969696" d="M3 18h12v-2H3v2zM3 6v2h18V6H3zm0 7h18v-2H3v2z" /> +</svg> diff --git a/core/img/filetypes/text.svg b/core/img/filetypes/text.svg index 152ba65d82e..1b2345a3b55 100644 --- a/core/img/filetypes/text.svg +++ b/core/img/filetypes/text.svg @@ -1 +1,5 @@ -<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m2.5 1c-0.28 0-0.5 0.22-0.5 0.5v13c0 0.28 0.22 0.5 0.5 0.5h11c0.28 0 0.5-0.22 0.5-0.5v-10.5l-3-3h-8.5zm1.5 2h6v1h-6v-1zm0 3h5v1h-5v-1zm0 3h8v1h-8v-1zm0 3h4v1h-4v-1z" fill="#969696"/></svg> +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#000000"> + <path d="M0 0h24v24H0z" fill="none" /> + <path fill="#969696" + d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z" /> +</svg> diff --git a/core/img/filetypes/x-office-document.svg b/core/img/filetypes/x-office-document.svg index d2d4237fd7a..adc8454f60e 100644 --- a/core/img/filetypes/x-office-document.svg +++ b/core/img/filetypes/x-office-document.svg @@ -1 +1,5 @@ -<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m2.5 1c-0.28 0-0.5 0.22-0.5 0.5v13c0 0.28 0.22 0.5 0.5 0.5h11c0.28 0 0.5-0.22 0.5-0.5v-10.5l-3-3h-8.5zm1.5 2h6v1h-6v-1zm0 3h5v1h-5v-1zm0 3h8v1h-8v-1zm0 3h4v1h-4v-1z" fill="#49abea"/></svg> +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#000000"> + <path d="M0 0h24v24H0z" fill="none" /> + <path fill="#49abea" + d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" /> +</svg> diff --git a/core/img/filetypes/x-office-drawing.svg b/core/img/filetypes/x-office-drawing.svg index 41c0ed7126e..2fc507fa851 100644 --- a/core/img/filetypes/x-office-drawing.svg +++ b/core/img/filetypes/x-office-drawing.svg @@ -1 +1,4 @@ -<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1c-.28 0-.5.22-.5.5v13c0 .28.22.5.5.5h11c.28 0 .5-.22.5-.5V4l-3-3H2.5zM4 6h2.8v1.2h2.4V6H12v3.2H9.2V8h-.8v3.2h.8V10H12v3.2H9.2V12H7.6V8h-.8v1.2H4V6z" fill="#ebc94a"/></svg> +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> + <path fill="#b39114" + d="M18,18H12V12.21C11.34,12.82 10.47,13.2 9.5,13.2C7.46,13.2 5.8,11.54 5.8,9.5A3.7,3.7 0 0,1 9.5,5.8C11.54,5.8 13.2,7.46 13.2,9.5C13.2,10.47 12.82,11.34 12.21,12H18M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" /> +</svg> diff --git a/core/img/filetypes/x-office-presentation.svg b/core/img/filetypes/x-office-presentation.svg index d22fb3c4793..d7b61cba0df 100644 --- a/core/img/filetypes/x-office-presentation.svg +++ b/core/img/filetypes/x-office-presentation.svg @@ -1 +1,4 @@ -<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m1.5 2c-0.25 0-0.5 0.25-0.5 0.5v11c0 0.25 0.25 0.5 0.5 0.5h13c0.25 0 0.5-0.25 0.5-0.5v-11c0-0.25-0.25-0.5-0.5-0.5zm0.5 3h12v6h-12z" fill="#f0965f"/></svg> +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> + <path fill="#f0965f" + d="M19,16H5V8H19M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" /> +</svg> diff --git a/core/img/filetypes/x-office-spreadsheet.svg b/core/img/filetypes/x-office-spreadsheet.svg index c928ff2764e..5e29558fe45 100644 --- a/core/img/filetypes/x-office-spreadsheet.svg +++ b/core/img/filetypes/x-office-spreadsheet.svg @@ -1 +1,4 @@ -<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m2.5 1c-0.28 0-0.5 0.22-0.5 0.5v13c0 0.28 0.22 0.5 0.5 0.5h11c0.28 0 0.5-0.22 0.5-0.5v-10.5l-3-3h-8.5zm1.5 3h2v2h-2v-2zm3 0h5v2h-5v-2zm-3 3h2v2h-2v-2zm3 0h5v2h-5v-2zm-3 3h2v2h-2v-2zm3 0h5v2h-5v-2z" fill="#9abd4e"/></svg> +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> + <path fill="#9abd4e" + d="M19 3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.89 20.1 3 19 3M9 18H6V16H9V18M9 15H6V13H9V15M9 12H6V10H9V12M13 18H10V16H13V18M13 15H10V13H13V15M13 12H10V10H13V12Z" /> +</svg> diff --git a/core/src/icons.js b/core/src/icons.js index 43384953905..fb8cccfe56c 100644 --- a/core/src/icons.js +++ b/core/src/icons.js @@ -125,6 +125,10 @@ const icons = { } const iconsColor = { + 'add-folder-description': { + path: path.join(__dirname, '../img', 'actions', 'add-folder-description.svg'), + color: 'grey', + }, 'settings': { path: path.join(__dirname, '../img', 'actions', 'settings.svg'), color: 'black', @@ -167,6 +171,10 @@ const iconsColor = { // TODO: replace primary ? color: 'primary', }, + 'filetype-text': { + path: path.join(__dirname, '../img', 'filetypes', 'text.svg'), + color: 'grey', + }, } // use this to define aliases to existing icons @@ -210,7 +218,6 @@ const iconsAliases = { 'icon-category-security': 'icon-password-dark', 'icon-category-search': 'icon-search-dark', 'icon-category-tools': 'icon-settings-dark', - 'icon-filetype-text': 'icon-file-grey', 'nav-icon-systemtagsfilter': 'icon-tag-dark', } |