ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
52.69k stars 3.59k forks source link

Add libreoffice files icons #1527

Closed Gaspartcho closed 4 months ago

Gaspartcho commented 4 months ago

Description

Added the LibreOffice file icons (from Iconify, Simple Icons Icon set):

Requirements / Checklist

Finii commented 4 months ago

Thanks for the PR!

image

First instinct was to ask "why, we already have enough file types", and for eaxmple these:

image

Hmm. I fear that the application specific part of the icon is too small. It is not even maximized in the file-frame. Compare with the other file type icons, where the type is much bigger and visible with reasonable font sizes.

And then I am not sure if this should go here or rather to font-logos. :thinking: (font-logos then ends up also in Nerd Fonts).

Lets simmer this a bit.


They (upstream) have a strange width and height encoded, that makes it hard to open in inkscape, eog, ...

diff --git a/src/svgs/libreoffice_nf.svg b/src/svgs/libreoffice_nf.svg
index 48c88874e..175191743 100644
--- a/src/svgs/libreoffice_nf.svg
+++ b/src/svgs/libreoffice_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
   <path fill="currentColor" d="M16.365 0a.597.597 0 0 0-.555.352a.582.582 0 0 0 .128.635l4.985 4.996a.605.605 0 0 0 .635.133a.59.59 0 0 0 .363-.53V.577A.605.605 0 0 0 21.335 0zM2.661 0a.59.59 0 0 0-.582.59v22.82a.59.59 0 0 0 .582.59h18.67a.59.59 0 0 0 .59-.59V8.716a.59.59 0 0 0-.17-.42L13.674.182a.59.59 0 0 0-.42-.181zm.59 1.184h9.754l7.733 7.77v13.863H3.251z"/>
 </svg>
diff --git a/src/svgs/libreofficebase_nf.svg b/src/svgs/libreofficebase_nf.svg
index 23afd4de6..29ef2a13a 100644
--- a/src/svgs/libreofficebase_nf.svg
+++ b/src/svgs/libreofficebase_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path fill="currentColor" d="M17 13h-1v-1h1zm0 1h-1v1h1zm0 2h-1v1h1zm-.6-16H15l7 7V0zM13 0l9 9v12c0 1.662-1.338 3-3 3H5c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3zM6 11c0 .552 1.343 1 3 1s3-.448 3-1v-1c0-.552-1.343-1-3-1s-3 .448-3 1zm0 2c0 .552 1.343 1 3 1s3-.448 3-1v-1c0 .552-1.343 1-3 1s-3-.448-3-1zm0 2c0 .552 1.343 1 3 1s3-.448 3-1v-1c0 .552-1.343 1-3 1s-3-.448-3-1zm0 2c0 .552 1.343 1 3 1s3-.448 3-1v-1c0 .552-1.343 1-3 1s-3-.448-3-1zm12-6h-5v7h5zm-3 1h-1v1h1zm0 4h-1v1h1zm0-2h-1v1h1z" />
 </svg>
diff --git a/src/svgs/libreofficecalc_nf.svg b/src/svgs/libreofficecalc_nf.svg
index ca7f327e2..5c776c71a 100644
--- a/src/svgs/libreofficecalc_nf.svg
+++ b/src/svgs/libreofficecalc_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path fill="currentColor" d="M9 13H7v-1h2zm6-3h-2v1h2zm-6 0H7v1h2zm3 0h-2v1h2zm3-10l7 7V0zM9 14H7v1h2zm5 3h1v-3h-1zm2 0h1v-1h-1zm-4 0h1v-2h-1zm1-17l9 9v12c0 1.662-1.338 3-3 3H5c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3zm5 13h-7v5h7zm-2-4H6v7h4.5v-1H10v-1h.5v-1H10v-1h2v.5h1V12h2v.5h1z" />
 </svg>
diff --git a/src/svgs/libreofficedraw_nf.svg b/src/svgs/libreofficedraw_nf.svg
index 68078c88b..f58d56c35 100644
--- a/src/svgs/libreofficedraw_nf.svg
+++ b/src/svgs/libreofficedraw_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path fill="currentColor" d="M5 0C3.338 0 2 1.338 2 3v18c0 1.662 1.338 3 3 3h14c1.662 0 3-1.338 3-3V9l-9-9zm1 12a3 3 0 0 1 3-3c1.6 0 2.897 1.257 2.984 2.837L11.5 11l-2.298 3.98c-.068.004-.133.02-.203.02a3 3 0 0 1-3-3zm3.191 5l2.31-4l2.31 4H9.19zM18 16h-3.613L13 13.597V11h5zm4-16v7l-7-7zm-5 15h-3v-3h3z" />
 </svg>
diff --git a/src/svgs/libreofficeimpress_nf.svg b/src/svgs/libreofficeimpress_nf.svg
index 5242e0d6c..552a7bbe8 100644
--- a/src/svgs/libreofficeimpress_nf.svg
+++ b/src/svgs/libreofficeimpress_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path fill="currentColor" d="M22 0v7l-7-7zm-9 0l9 9v12c0 1.662-1.338 3-3 3H5c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3zM7 17H6v1h1zm0-2H6v1h1zm0-2H6v1h1zm3 4H8v1h2zm0-2H8v1h2zm0-2H8v1h2zm6-1v-1H8v1zm2 1h-7v5h7zm0-4H6v1h12zm-4 6.707l1 1l2.207-2.207l-.707-.707l-1.5 1.5l-1-1l-2.207 2.207l.707.707z" />
 </svg>
diff --git a/src/svgs/libreofficemath_nf.svg b/src/svgs/libreofficemath_nf.svg
index ee6ad0c54..6bdd74be1 100644
--- a/src/svgs/libreofficemath_nf.svg
+++ b/src/svgs/libreofficemath_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path fill="currentColor" d="M22 0v7l-7-7zm-9 0l9 9v12c0 1.662-1.338 3-3 3H5c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3zM8 17H6v1h2zm5 0h-2v1h2zm2.293-1.293a1 1 0 0 0 1.414-1.414l-.793-.793l.793-.793a1 1 0 0 0-1.414-1.414l-.793.793l-.793-.793a1 1 0 1 0-1.414 1.414l.793.793l-.793.793a1 1 0 0 0 1.414 1.414l.793-.793zM18 17h-2v1h2zm0-8H9.862L8 13.653L7.338 12H6v1h.662L8 16.347L10.539 10H18z" />
 </svg>
diff --git a/src/svgs/libreofficewriter_nf.svg b/src/svgs/libreofficewriter_nf.svg
index 1d1238d41..9a4610896 100644
--- a/src/svgs/libreofficewriter_nf.svg
+++ b/src/svgs/libreofficewriter_nf.svg
@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
   <path fill="currentColor" d="M22 0v7l-7-7zm0 9v12c0 1.662-1.338 3-3 3H5c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3h8zM6 10h5V9H6zm0 2h5v-1H6zm0 2h5v-1H6zm5 3H6v1h5zm7-2H6v1h12zm0-6h-6v5h6zm-1.5 2a.5.5 0 1 0 0-1a.5.5 0 0 0 0 1M14 11l-1 2h3z"/>
 </svg>
Gaspartcho commented 4 months ago

I fear that the application specific part of the icon is too small.

The changes you suggested seems to fix this issue, thanks.

And then I am not sure if this should go here or rather to font-logos.

You are right, this seems to be a far better place for this. I will move my PR there.

Thank you for the help!

Finii commented 4 months ago

I will move my PR there.

Moved your PR over there (see above).