diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/window_icons/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-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.html | 22 |
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 <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> |