mozilla

Revision 104324 of Window icons

  • Revision slug: Window_icons
  • Revision title: Window icons
  • Revision id: 104324
  • Created:
  • Creator: Neil
  • Is current revision? No
  • Comment 47 words added

Revision Content

 

Starting with Firefox 1.5, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named mywindow.ico (for Windows) and mywindow.xpm or mywindow16.xpm (Linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/default subfolder of your bundle.

These icons will override the global icon files, which are located in app_dir/chrome/icons/default.

Starting with Firefox 3.0, XULRunner 3.0, Thunderbird 3.0 and SeaMonkey 2.0 you can now specify PNG format icons instead of XPM format on Linux. You can specify up to 4 PNG icons using the suffixes .png, 16.png, 32.png and 48.png.

Older versions

To support older applications, such as Firefox 1.0, you need to copy the icons to app_dir/chrome/icons/default manually on the first start (example code).

{{ languages( { "fr": "fr/Ic\u00f4nes_de_fen\u00eatre", "ja": "ja/Window_icons", "pl": "pl/Ikony_okna" } ) }}

Revision Source

<p> </p>
<p>Starting with <a href="/en/Firefox_1.5_for_developers" title="en/Firefox_1.5_for_developers">Firefox 1.5</a>, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named <code>mywindow.ico</code> (for Windows) and <code>mywindow.xpm</code> or <code>mywindow16.xpm</code> (Linux), where <code>mywindow</code> is the <code>id</code> of the <code>&lt;window&gt;</code> you want to attach the icon to, in the <code>chrome/icons/default</code> subfolder of your <a href="/en/Bundles" title="en/Bundles">bundle</a>.</p>
<p>These icons will override the global icon files, which are located in <code><em>app_dir</em>/chrome/icons/default</code>.</p>
<p>Starting with Firefox 3.0, XULRunner 3.0, Thunderbird 3.0 and SeaMonkey 2.0 you can now specify PNG format icons instead of XPM format on Linux. You can specify up to 4 PNG icons using the suffixes <code>.png</code>, <code>16.png</code>, <code>32.png</code> and <code>48.png</code>.</p>
<h3 name="Older_versions">Older versions</h3>
<p>To support older applications, such as Firefox 1.0, you need to copy the icons to <code><em>app_dir</em>/chrome/icons/default</code> manually on the first start (<a class="external" href="http://forums.mozillazine.org/viewtopic.php?p=1243796#1243796">example code</a>).</p>
<p>{{ languages( { "fr": "fr/Ic\u00f4nes_de_fen\u00eatre", "ja": "ja/Window_icons", "pl": "pl/Ikony_okna" } ) }}</p>
Revert to this revision