diff --git a/assets/logo.svg b/assets/logo.svg
index bfd50a0c90..9df6b83b56 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 9b7b820172..c7f58f61d0 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 e23ba5999d..0c803d35dc 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 346edb4bbe..129967112d 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 5ad5af21bf..dcd4edb1a3 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 88dae53067..dca9b4f4db 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 05bf6d6de7..08baff19e1 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 7b32fb33b6..c7971f9183 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 e50c6cf4d1..5dacd7735d 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 0ae375c5c6..f03a64b043 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 fa9dce064c..e69c8ecaa1 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