rubo77
rubo77

Reputation: 20845

How do I add an icon to my Firefox Add-On with addon-SDK?

I would like to add another icon to the Firefox addon I develop than the standard Icon:
enter image description here

I use the firefox-addon-sdk jetpack to develop it

Upvotes: 0

Views: 55

Answers (1)

rubo77
rubo77

Reputation: 20845

You have to add it to your package.json. That file is initially generated in your add-on's root directory the first time you run cfx init. This will add an icon (assuming the add-on's directory is "my-addon"):`

{
  "name": "my-addon",
  "title": "my-addon",
  "id": "jid1-1FERGV45e4f4f",
  "description": "a basic add-on",
  "icon": "icon.png",
  "icon64": "icon64.png",
  "author": "",
  "license": "MPL 2.0",
  "version": "0.1"
}

You can specify different icons for "icon" and "icon64"

here you see all possible options

Upvotes: 2

Related Questions