aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/window_icons/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/window_icons/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/window_icons/index.html')
-rw-r--r--files/zh-cn/window_icons/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/files/zh-cn/window_icons/index.html b/files/zh-cn/window_icons/index.html
new file mode 100644
index 0000000000..9ccb58bf19
--- /dev/null
+++ b/files/zh-cn/window_icons/index.html
@@ -0,0 +1,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>