From a88788f3fca9a30c0373a0e4a21a2318c1ee4b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 16 Aug 2023 20:39:05 -0700 Subject: [PATCH] Add adaptive SVG favicon and more SVG variants See https://web.dev/building-an-adaptive-favicon/ Added more variant of the original Inkscape icon: - Text SVG - Vectorized text path SVG - Optimized SVG icon --- app/Template/layout.php | 1 + assets/img/README.md | 7 ++ assets/img/adaptive-favicon.svg | 13 ++++ assets/img/icon.svg | 84 -------------------- assets/img/inkscape-optimized-icon.svg | 6 ++ assets/img/inkscape-path-icon.svg | 90 +++++++++++++++++++++ assets/img/inkscape-text-icon.svg | 103 +++++++++++++++++++++++++ 7 files changed, 220 insertions(+), 84 deletions(-) create mode 100644 assets/img/README.md create mode 100644 assets/img/adaptive-favicon.svg delete mode 100644 assets/img/icon.svg create mode 100644 assets/img/inkscape-optimized-icon.svg create mode 100644 assets/img/inkscape-path-icon.svg create mode 100644 assets/img/inkscape-text-icon.svg diff --git a/app/Template/layout.php b/app/Template/layout.php index d48d8d1ee..088e2db49 100644 --- a/app/Template/layout.php +++ b/app/Template/layout.php @@ -30,6 +30,7 @@ hook->asset('css', 'template:layout:css') ?> hook->asset('js', 'template:layout:js') ?> + diff --git a/assets/img/README.md b/assets/img/README.md new file mode 100644 index 000000000..b8a8b0cea --- /dev/null +++ b/assets/img/README.md @@ -0,0 +1,7 @@ +Icons +===== + +- `adaptive-favicon.svg`: Icon with embedded CSS that can be served with a dark or light theme +- `inkscape-text-icon.svg`: Original Inkscape file +- `inkscape-path-icon.svg`: Inkscape file with the text converted to path (Inkscape: `Path -> Object to Path`) +- `inkscape-optimized-icon.svg`: Inkscape export striped of unecessary elements (Inkscape: `Save as -> Save as Optimized SVG`) diff --git a/assets/img/adaptive-favicon.svg b/assets/img/adaptive-favicon.svg new file mode 100644 index 000000000..288e825db --- /dev/null +++ b/assets/img/adaptive-favicon.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/assets/img/icon.svg b/assets/img/icon.svg deleted file mode 100644 index be3490823..000000000 --- a/assets/img/icon.svg +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - K - B - - diff --git a/assets/img/inkscape-optimized-icon.svg b/assets/img/inkscape-optimized-icon.svg new file mode 100644 index 000000000..4d7b92bc9 --- /dev/null +++ b/assets/img/inkscape-optimized-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/img/inkscape-path-icon.svg b/assets/img/inkscape-path-icon.svg new file mode 100644 index 000000000..625faead1 --- /dev/null +++ b/assets/img/inkscape-path-icon.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/img/inkscape-text-icon.svg b/assets/img/inkscape-text-icon.svg new file mode 100644 index 000000000..710924219 --- /dev/null +++ b/assets/img/inkscape-text-icon.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + K + B + +