aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/window_icons/index.html
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 &lt;tt&gt;mywindow.ico&lt;/tt&gt; (for Windows) and &lt;tt&gt;mywindow.xpm&lt;/tt&gt; (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 &lt;tt&gt;chrome/icons/default&lt;/tt&gt; subfolder of your <a href="cn/Bundles">bundle</a>.</p>
<p>These icons will override the global icon files, which are located in &lt;tt&gt;
 <i>
  app_dir</i>
 /chrome/icons/default&lt;/tt&gt;.</p>
<h3 id="Older_versions" name="Older_versions">Older versions</h3>
<p>为了支持早期版本, 比如 Firefox 1.0, 你必须在第一次运行时手工拷贝图标到&lt;tt&gt;
 <i>
  app_dir</i>
 /chrome/icons/default&lt;/tt&gt; (<a class="external" href="http://forums.mozillazine.org/viewtopic.php?p=1243796#1243796">example code</a>).</p>
<p></p>