Firefox OS Simulator上未显示图标 [英] Icon not displayed on Firefox OS Simulator

查看:131
本文介绍了Firefox OS Simulator上未显示图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始为firefox OS开发应用程序。我做了一个示例应用程序,它运行得很好。我的问题是在我的模拟器中我的应用程序图标未显示。它使用默认图标。

I just started developing applications for firefox OS. I done a sample application and it is working perfectly. My issue is in my simulator my application Icon is not displayed. It uses the default icon.

我在清单文件中添加了以下代码:

I added the below code in my manifest file:

"icons": {
    "128": "Feed.png"
  }

在我的目录中添加了一个名为Frrd.png的128 x 128图像。但这对我不起作用,可能是什么问题?

Added a 128 x 128 image named Frrd.png to my directory. But it is not working for me, what can be the issue ?

推荐答案

第一回答:



最后我明白了。

First Answer:

Finally I got it.

对于Firefox OS,图标大小应该是 30 X 30 60 X 60

For Firefox OS the icon size should be of size 30 X 30 or 60 X 60.

对于Firefox Market,图标大小应为 128 X 128

For Firefox Market place the icon size should be 128 X 128


对于Firefox OS,应该提供没有投影和
的图标关闭以下尺寸的裁剪帆布:

For Firefox OS icons should be provided without a drop shadow and a close cropped canvas in the following sizes:

30 x 30
60 x 60

注意: Firefox Marketplace要求所有提交的应用至少包含一个至少128 x 128的图标。

Note: Firefox Marketplace requires all submitted apps to have a minimum of one icon that is at least 128 x 128.

参考: Firefox OS - 样式指南

我用di添加了所有图像在我的申请的文档中指定的维度。但它也没有用!!!

I added all images with the dimensions specified in the doc to my application. But it also not worked !!!

Atlast我在我的项目中添加了一个目录 img 并添加了图标给它。然后修改 manifest.webapp 文件,如:

Atlast I added a directory img to my project and added icons to it. Then modified the manifest.webapp file like:

"icons": {
    "128": "/img/Feed.png"
  }

它对我有用,我不知道它是否是一个bug。

It worked for me, I don't know whether it is a bug or not.

这篇关于Firefox OS Simulator上未显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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