archive-org-link-grabber/icons
2025-08-23 23:51:22 -05:00
..
file-search.svg adding svg for icon 2025-08-23 23:01:05 -05:00
README.md build(icons): generate toolbar/add-on PNGs from SVG with transparent background; configurable colors; stop tracking PNGs and ignore outputs 2025-08-23 23:51:22 -05:00

Icon assets

PNG icons are generated from file-search.svg during the build. Run npm run build (or npm run build:icons) to regenerate. The manifest is wired to use:

  • Toolbar (browser_action → default_icon):
    • icons/icon-16.png
    • icons/icon-32.png
  • Extension/Store (top-level icons):
    • icons/icon-48.png
    • icons/icon-96.png
    • icons/icon-128.png

Notes

  • Source: icons/file-search.svg uses stroke="currentColor".
  • The build script replaces currentColor with configured colors and rasterizes with a transparent background.
  • Customize colors via env vars:
    • ICON_COLOR_ADDON (48/96/128); default #111827.
    • ICON_COLOR_TOOLBAR (16/32); default #111827.
  • Firefox does not require .ico; PNG is recommended.
  • Theme variants can be added later via browser_action.theme_icons.