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

偶尔善良 提交于 2020-01-16 23:48:46

问题


I would like to add another icon to the Firefox addon I develop than the standard Icon:

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


回答1:


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



来源:https://stackoverflow.com/questions/23853862/how-do-i-add-an-icon-to-my-firefox-add-on-with-addon-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!