diff --git a/assets/logo.svg b/assets/logo.svg
index bfd50a0c9..9df6b83b5 100644
--- a/assets/logo.svg
+++ b/assets/logo.svg
@@ -1,161 +1,31 @@
-
-
-
-
\ No newline at end of file
+
+
diff --git a/build/generate-images.js b/build/generate-images.js
index 9b7b82017..c7f58f61d 100755
--- a/build/generate-images.js
+++ b/build/generate-images.js
@@ -3,7 +3,6 @@
const imageminZopfli = require('imagemin-zopfli');
const {fabric} = require('fabric');
-const {DOMParser, XMLSerializer} = require('xmldom');
const {readFile, writeFile} = require('fs').promises;
const {resolve} = require('path');
const Svgo = require('svgo');
@@ -40,23 +39,7 @@ async function generateSvgFavicon(svg, outputFile) {
await writeFile(outputFile, data);
}
-async function generate(svg, outputFile, {size, bg, removeDetail} = {}) {
- const parser = new DOMParser();
- const serializer = new XMLSerializer();
- const document = parser.parseFromString(svg);
-
- if (removeDetail) {
- for (const el of Array.from(document.getElementsByTagName('g') || [])) {
- for (const attribute of Array.from(el.attributes || [])) {
- if (attribute.name === 'class' && attribute.value === 'detail-remove') {
- el.parentNode.removeChild(el);
- }
- }
- }
- }
-
- svg = serializer.serializeToString(document);
-
+async function generate(svg, outputFile, {size, bg}) {
const {objects, options} = await loadSvg(svg);
const canvas = new fabric.Canvas();
canvas.setDimensions({width: size, height: size});
@@ -93,7 +76,7 @@ async function main() {
await generate(svg, resolve(__dirname, '../public/img/gitea-192.png'), {size: 192});
await generate(svg, resolve(__dirname, '../public/img/gitea-sm.png'), {size: 120});
await generate(svg, resolve(__dirname, '../public/img/avatar_default.png'), {size: 200});
- await generate(svg, resolve(__dirname, '../public/img/favicon.png'), {size: 180, removeDetail: true});
+ await generate(svg, resolve(__dirname, '../public/img/favicon.png'), {size: 180});
await generate(svg, resolve(__dirname, '../public/img/apple-touch-icon.png'), {size: 180, bg: true});
}
diff --git a/public/img/apple-touch-icon.png b/public/img/apple-touch-icon.png
index e23ba5999..0c803d35d 100644
Binary files a/public/img/apple-touch-icon.png and b/public/img/apple-touch-icon.png differ
diff --git a/public/img/avatar_default.png b/public/img/avatar_default.png
index 346edb4bb..129967112 100644
Binary files a/public/img/avatar_default.png and b/public/img/avatar_default.png differ
diff --git a/public/img/favicon.png b/public/img/favicon.png
index 5ad5af21b..dcd4edb1a 100644
Binary files a/public/img/favicon.png and b/public/img/favicon.png differ
diff --git a/public/img/favicon.svg b/public/img/favicon.svg
index 88dae5306..dca9b4f4d 100644
--- a/public/img/favicon.svg
+++ b/public/img/favicon.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/public/img/gitea-192.png b/public/img/gitea-192.png
index 05bf6d6de..08baff19e 100644
Binary files a/public/img/gitea-192.png and b/public/img/gitea-192.png differ
diff --git a/public/img/gitea-512.png b/public/img/gitea-512.png
index 7b32fb33b..c7971f918 100644
Binary files a/public/img/gitea-512.png and b/public/img/gitea-512.png differ
diff --git a/public/img/gitea-lg.png b/public/img/gitea-lg.png
index e50c6cf4d..5dacd7735 100644
Binary files a/public/img/gitea-lg.png and b/public/img/gitea-lg.png differ
diff --git a/public/img/gitea-sm.png b/public/img/gitea-sm.png
index 0ae375c5c..f03a64b04 100644
Binary files a/public/img/gitea-sm.png and b/public/img/gitea-sm.png differ
diff --git a/public/img/svg/gitea-gitea.svg b/public/img/svg/gitea-gitea.svg
index fa9dce064..e69c8ecaa 100644
--- a/public/img/svg/gitea-gitea.svg
+++ b/public/img/svg/gitea-gitea.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file