diff --git a/assets/logo.svg b/assets/logo.svg
index bfd50a0c904..9df6b83b564 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 9b7b8201720..c7f58f61d07 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 e23ba5999d2..0c803d35dc3 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 346edb4bbea..129967112d1 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 5ad5af21bff..dcd4edb1a30 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 88dae530671..dca9b4f4db5 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 05bf6d6de7a..08baff19e19 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 7b32fb33b60..c7971f91835 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 e50c6cf4d19..5dacd7735d3 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 0ae375c5c65..f03a64b0437 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 fa9dce064cf..e69c8ecaa1b 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