blob: 9ccb58bf19e6e63f47a4c6f594a98de5d3dab301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
title: chrome window icons
slug: Window_icons
tags:
- Extensions
- Toolkit API
- XPInstall
- XUL
translation_of: Archive/Mozilla/XUL/Window_icons
---
<p> </p>
<p>Starting with <a href="cn/Firefox_1.5">Firefox 1.5</a>, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named <tt>mywindow.ico</tt> (for Windows) and <tt>mywindow.xpm</tt> (Linux), where <code>mywindow</code> is the <code>id</code> of the <code><window></code> you want to attach the icon to, in the <tt>chrome/icons/default</tt> subfolder of your <a href="cn/Bundles">bundle</a>.</p>
<p>These icons will override the global icon files, which are located in <tt>
<i>
app_dir</i>
/chrome/icons/default</tt>.</p>
<h3 id="Older_versions" name="Older_versions">Older versions</h3>
<p>为了支持早期版本, 比如 Firefox 1.0, 你必须在第一次运行时手工拷贝图标到<tt>
<i>
app_dir</i>
/chrome/icons/default</tt> (<a class="external" href="http://forums.mozillazine.org/viewtopic.php?p=1243796#1243796">example code</a>).</p>
<p></p>
|