kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.57k stars 548 forks source link

Possible to change the SVG icon ? #468

Closed yvanblanchard closed 5 months ago

yvanblanchard commented 6 months ago

I tried to replace the SVG icon of website by mine, but nothing appears. Is there any thing to change/prepare for this ?

<svg class="logo_image"><use href="assets/images/3dviewer_net_logo_text.svg#logo"></use></svg>

Thank you.

kovacsv commented 5 months ago

The svg icon is tricky since it has to support both light and dark modes. You need an svg like this to make it work:

<?xml version="1.0" encoding="UTF-8"?>
<svg id="logo" version="1.1" viewBox="0 0 60 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
...
</svg>