如何使用addon-SDK将图标添加到我的Firefox附加组件? [英] How do I add an icon to my Firefox Add-On with addon-SDK?

查看:159
本文介绍了如何使用addon-SDK将图标添加到我的Firefox附加组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我开发的Firefox插件中添加另一个图标而不是标准图标:

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

我使用firefox-addon-sdk jetpack开发它

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

推荐答案

您必须将其添加到 package.json 。第一次运行 cfx init 时,该文件最初是在加载项的根目录中生成的。这将添加一个图标(假设附加组件的目录是my-addon):`

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"
}

您可以为icon和icon64指定不同的图标

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


此处显示所有可能的选项

这篇关于如何使用addon-SDK将图标添加到我的Firefox附加组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆