2

我正面临一个非常烦人的问题。我同时提供 16x16 和 32x32 应用程序图标,但初始窗口使用按比例缩小的 32x32 图标,而不是 16x16 图标。

以下是各自的图标图像:

因此,将 16x16 图标用于应用程序图标、Windows 或任何似乎不这样认为的东西是有意义的:

我该如何解决?当应用程序图标的所有其他使用都清晰明了时,除了该死的窗口图标之外,这真的很烦人并且看起来非常不专业。

此错误/错误也出现在任务栏中。

有任何想法吗?

编辑: application.xml

<?xml version="1.0" encoding="utf-8"?>
<application xmlns="http://ns.adobe.com/air/application/3.5">
  <id>com.yahrly.PixelTBSLevelEditor</id>
  <versionNumber>1.0.0</versionNumber>
  <filename>PixelTBS Level Editor</filename>
  <name>PixelTBS Level Editor</name>
  <copyright>© 2013, YahRly LLC</copyright>
  <initialWindow>
    <title>PixelTBS Level Editor</title>
    <content>PixelTBSLevelEditor.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <minimizable>true</minimizable>
    <maximizable>false</maximizable>
    <resizable>false</resizable>
  </initialWindow>
  <installFolder>YahRly</installFolder>
  <programMenuFolder>PixelTBS Level Editor</programMenuFolder>
  <supportedProfiles>desktop</supportedProfiles>
  <icon>
    <image16x16>icons/icon16.png</image16x16>
    <image32x32>icons/icon32.png</image32x32>
    <image48x48>icons/icon48.png</image48x48>
    <image128x128>icons/icon128.png</image128x128>
  </icon>
  <description>Create and customise your own maps for PixelTBS.</description>
</application>

编辑2:我发现其他人有我的问题,但他们也没有回应>>这里

4

1 回答 1

0

一些事情要尝试:

  1. 确保正在打包正确的图标文件。有时很容易忘记以前的图标仍在使用,如果它们仍然在bin您的项目的文件夹(例如)中可用,而 ADT 可能仍在调用该文件夹。

  2. 检查您的图标,看看它们是否确实是正确的版本。

  3. 清理你的项目,重新编译然后重新打包。

  4. 在描述符文件中使用所有可用的图标大小:

应用程序.xml

<icon>
    <image512x512>icons/OffAirIcon512.png</image512x512>
    <image128x128>icons/OffAirIcon128.png</image128x128>
    <image72x72>icons/OffAirIcon72.png</image72x72>
    <image57x57>icons/OffAirIcon57.png</image57x57>
    <image48x48>icons/OffAirIcon48.png</image48x48>
    <image36x36>icons/OffAirIcon36.png</image36x36>
    <image32x32>icons/OffAirIcon32.png</image32x32>
    <image29x29>icons/OffAirIcon29.png</image29x29>
    <image16x16>icons/OffAirIcon16.png</image16x16>
</icon>

我怀疑问题是#1,但如果这些都不起作用,请回复有关您如何打包应用程序的详细信息?你的 ADT 命令是什么?您在使用 FlashDevelop 吗?闪存生成器?


[编辑]

似乎需要以编程方式加载唯一的任务栏和系统 Trey 图标,并将flash.desktop.InteractiveIcon.bitmaps数组分配给flash.desktop.NativeApplication.nativeApplication.icon .bitmaps,如下所示:

AIR 中的任务栏图标

我意识到虽然这不能回答您的问题,但它肯定可以工作。它确实提出了关于 16 x 16 像素大小的图标文件未按预期使用的问题(对于任务栏/系统 Trey),但也许这些application.xml图标专门用于在 Windows 资源管理器中查看。如果您将鼠标悬停在桌面上并在滚动鼠标时按 Ctrl,您将看到 Windows 资源管理器也能够显示 16 x 16 像素大小的图标。

于 2013-03-20T20:42:16.280 回答