Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/icons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const STATES = {
danger: { body: '#A4243B', facet: '#831C2F', meaning: 'Known malware, phishing or scam host (garnet)' },
paused: { body: '#8A919A', facet: '#727982', meaning: 'Paused on this site, or protection off (grey)' },
};
const SIZES = [16, 32, 48, 128];
const SIZES = [16, 32, 48, 64, 128];

// Hand in local coordinates, middle finger centred on x=32. The thumb grows out of the
// palm's lower-left along the index finger so it reads as one fist at 16px.
Expand Down
4 changes: 2 additions & 2 deletions scripts/store-art.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ for (const [name, html] of Object.entries(pages)) {
await page.close();
console.log(`${name}.png ${w}x${h}`);
}
// Store icons: Edge wants 300x300, Chrome's listing icon is 128x128.
for (const [name, size] of [['logo-300', 300], ['icon-128', 128]]) {
// Store icons: Edge wants 300x300, Chrome's listing icon is 128x128, Firefox asks for 32 and 64.
for (const [name, size] of [['logo-300', 300], ['icon-128', 128], ['icon-64', 64], ['icon-32', 32]]) {
const page = await browser.newPage({ viewport: { width: size, height: size } });
await page.setContent(`<body style="margin:0;background:transparent"><img src="${ICON.idle}" width="${size}" height="${size}" style="display:block"></body>`);
await page.locator('img').screenshot({ path: path.join(out, `${name}.png`), omitBackground: true });
Expand Down
Binary file added src/icons/caution-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/danger-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/idle-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/paused-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/protected-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"16": "icons/idle-16.png",
"32": "icons/idle-32.png",
"48": "icons/idle-48.png",
"64": "icons/idle-64.png",
"128": "icons/idle-128.png"
},
"web_accessible_resources": [
Expand Down
Loading