Skip to content

Commit 47e6b7f

Browse files
MrCoderclaude
andcommitted
feat: Update favicon to use new 128x128 icon
- Replace old icon-48.png with new favicon-128x128.png in HTML - Update both PWA and Chrome Extension manifests to use new favicon - Fix gulpfile to properly copy favicon files for Chrome Extension build - Maintain backward compatibility by keeping old icon references where needed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 68c95da commit 47e6b7f

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

gulpfile.cjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,16 @@ gulp.task('packageExtension', function () {
140140
childProcess.execSync('cp src/extension/eventPage.js extension');
141141
childProcess.execSync('cp src/extension/script.js extension');
142142

143-
// Copy icon files from their actual locations
143+
// Copy icon files for Chrome Extension
144+
if (fs.existsSync('static/favicon-128x128.png')) {
145+
childProcess.execSync('cp static/favicon-128x128.png extension');
146+
}
144147
if (fs.existsSync('static/icon-16.png')) {
145148
childProcess.execSync('cp static/icon-16.png extension');
146149
}
147150
if (fs.existsSync('static/icon-48.png')) {
148151
childProcess.execSync('cp static/icon-48.png extension');
149152
}
150-
if (fs.existsSync('icon-128.png')) {
151-
childProcess.execSync('cp icon-128.png extension');
152-
} else if (fs.existsSync('static/icon-128.png')) {
153-
childProcess.execSync('cp static/icon-128.png extension');
154-
}
155153

156154
childProcess.execSync('rm -rf extension/partials');
157155
return merge(

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "image/png"
1919
},
2020
{
21-
"src": "icons/icon-128x128.png",
21+
"src": "favicon-128x128.png",
2222
"sizes": "128x128",
2323
"type": "image/png"
2424
},

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>ZenUML - Workspace</title>
6-
<link rel="shortcut icon" href="/icon-48.png" />
6+
<link rel="shortcut icon" href="/favicon-128x128.png" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<meta
99
name="description"

static/favicon-128x128.png

9.2 KB
Loading

static/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"default_icon": {
1515
"16": "icon-16.png",
1616
"48": "icon-48.png",
17-
"128": "icon-128.png"
17+
"128": "favicon-128x128.png"
1818
}
1919
},
2020
"background": {
@@ -23,6 +23,6 @@
2323
"icons": {
2424
"16": "icon-16.png",
2525
"48": "icon-48.png",
26-
"128": "icon-128.png"
26+
"128": "favicon-128x128.png"
2727
}
2828
}

0 commit comments

Comments
 (0)