display.xul

来自「现在很火的邮件客户端软件thunderbird的源码」· XUL 代码 · 共 169 行

XUL
169
字号
<?xml version="1.0"?># -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-# ***** BEGIN LICENSE BLOCK *****# Version: MPL 1.1/GPL 2.0/LGPL 2.1## The contents of this file are subject to the Mozilla Public License Version# 1.1 (the "License"); you may not use this file except in compliance with# the License. You may obtain a copy of the License at# http://www.mozilla.org/MPL/## Software distributed under the License is distributed on an "AS IS" basis,# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License# for the specific language governing rights and limitations under the# License.## The Original Code is the Thunderbird Preferences System.## The Initial Developer of the Original Code is# Scott MacGregor.# Portions created by the Initial Developer are Copyright (C) 2005# the Initial Developer. All Rights Reserved.## Contributor(s):#   Scott MacGregor <mscott@mozilla.org## Alternatively, the contents of this file may be used under the terms of# either the GNU General Public License Version 2 or later (the "GPL"), or# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),# in which case the provisions of the GPL or the LGPL are applicable instead# of those above. If you wish to allow use of your version of this file only# under the terms of either the GPL or the LGPL, and not to allow others to# use your version of this file under the terms of the MPL, indicate your# decision by deleting the provisions above and replace them with the notice# and other provisions required by the GPL or the LGPL. If you do not delete# the provisions above, a recipient may use your version of this file under# the terms of any one of the MPL, the GPL or the LGPL.## ***** END LICENSE BLOCK ***** <!DOCTYPE overlay [<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"><!ENTITY % displayDTD SYSTEM "chrome://messenger/locale/preferences/display.dtd" >%brandDTD;%displayDTD;]><overlay id="DisplayPaneOverlay"         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"         xmlns:nc="http://home.netscape.com/NC-rdf#"         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">             <prefpane id="paneDisplay" onpaneload="gDisplayPane.init();">    <script type="application/x-javascript" src="chrome://messenger/content/preferences/display.js"/>    <preferences>      <preference id="mail.preferences.display.selectedTabIndex" name="mail.preferences.display.selectedTabIndex" type="int"/>      <preference id="mail.fixed_width_messages" name="mail.fixed_width_messages" type="bool"/>      <preference id="mail.quoted_style" name="mail.quoted_style" type="int"/>      <preference id="mail.quoted_size" name="mail.quoted_size" type="int"/>      <preference id="mail.citation_color" name="mail.citation_color" type="string"/>      <preference id="mail.display_glyph" name="mail.display_glyph" type="bool"/>      <preference id="browser.display.foreground_color" name="browser.display.foreground_color" type="string"/>           <preference id="browser.display.background_color" name="browser.display.background_color" type="string"/>      <preference id="mailnews.labels.description.1" name="mailnews.labels.description.1" type="wstring"/>      <preference id="mailnews.labels.color.1" name="mailnews.labels.color.1" type="string"/>      <preference id="mailnews.labels.description.2" name="mailnews.labels.description.2" type="wstring"/>      <preference id="mailnews.labels.color.2" name="mailnews.labels.color.2" type="string"/>                      <preference id="mailnews.labels.description.3" name="mailnews.labels.description.3" type="wstring"/>      <preference id="mailnews.labels.color.3" name="mailnews.labels.color.3" type="string"/>      <preference id="mailnews.labels.description.4" name="mailnews.labels.description.4" type="wstring"/>      <preference id="mailnews.labels.color.4" name="mailnews.labels.color.4" type="string"/>      <preference id="mailnews.labels.description.5" name="mailnews.labels.description.5" type="wstring"/>      <preference id="mailnews.labels.color.5" name="mailnews.labels.color.5" type="string"/>    </preferences>    <tabbox id="displayPrefs" flex="1" onselect="gDisplayPane.tabSelectionChanged();">      <tabs>        <tab label="&itemFormatting.label;"/>        <tab label="&itemTags.label;"/>      </tabs>            <tabpanels flex="1">        <!-- Plain Text and HTML Formatting -->         <tabpanel orient="vertical">          <groupbox>            <caption label="&colors.label;"/>            <description>&overrideColors.label;</description>            <hbox align="center" class="indent">              <label value="&textColor.label;" accesskey="&textColor.accesskey;" control="foregroundtextmenu"/>                  <colorpicker type="button" id="foregroundtextmenu" palettename="standard" preference="browser.display.foreground_color"/>              <spacer style="width: 25px"/>              <label value="&backgroundColor.label;" accesskey="&backgroundColor.accesskey;" control="backgroundmenu"/>              <colorpicker type="button" id="backgroundmenu" palettename="standard" preference="browser.display.background_color"/>            </hbox>          </groupbox>              <groupbox>            <checkbox id="displayGlyph" label="&convertEmoticons.label;"                      preference="mail.display_glyph" accesskey="&convertEmoticons.accesskey;"/>            <caption label="&displayWidth.label;"/>                <hbox align="center">               <description>&plainText.label;</description>                  <radiogroup id="mailFixedWidthMessages" orient="horizontal" class="indent"                          preference="mail.fixed_width_messages">                <radio value="true" label="&fixedWidth.label;" accesskey="&fixedWidth.accesskey;"/>                <radio value="false" label="&variableWidth.label;" accesskey="&variableWidth.accesskey;"/>                              </radiogroup>            </hbox>            <separator class="thin"/>            <description>&displayText.label;</description>            <hbox class="indent" align="center">              <label value="&style.label;" accesskey="&style.accesskey;" control="mailQuotedStyle"/>              <menulist id="mailQuotedStyle" preference="mail.quoted_style">                <menupopup>                  <menuitem value="0" label="&regularStyle.label;"/>                  <menuitem value="1" label="&bold.label;"/>                  <menuitem value="2" label="&italic.label;"/>                  <menuitem value="3" label="&boldItalic.label;"/>                </menupopup>              </menulist>              <label value="&size.label;" accesskey="&size.accesskey;" control="mailQuotedSize"/>              <menulist id="mailQuotedSize" preference="mail.quoted_size">                <menupopup>                  <menuitem value="0" label="&regularSize.label;"/>                  <menuitem value="1" label="&bigger.label;"/>                  <menuitem value="2" label="&smaller.label;"/>                </menupopup>              </menulist>              <label value="&color.label;" accesskey="&color.accesskey;" control="citationmenu"/>              <colorpicker type="button" id="citationmenu" palettename="standard" preference="mail.citation_color"/>            </hbox>              </groupbox>          <groupbox>            <caption label="&fontsAndEncodingsCaption.label;"/>            <hbox align="center">              <description flex="1">&fontAndEncodingsDescription.label;</description>              <button label="&fontOptions.label;"                       accesskey="&fontOptions.accesskey;"                      oncommand="gDisplayPane.fontOptionsDialog();"/>            </hbox>          </groupbox>        </tabpanel>        <tabpanel orient="vertical">          <description>&displayTagsText.label;</description>          <hbox>            <listbox id="tagList" flex="1" rows="10"/>            <vbox>              <button label="&addTagButton.label;" accesskey="&addTagButton.accesskey;"                      oncommand="gDisplayPane.addTag();"/>              <button label="&editTagButton.label;" accesskey="&editTagButton.accesskey;"                      oncommand="gDisplayPane.editTag();"/>                            <button label="&removeTagButton.label;" accesskey="&removeTagButton.accesskey;"                       oncommand="gDisplayPane.removeTag();"/>            </vbox>          </hbox>        </tabpanel>      </tabpanels>    </tabbox>    <separator/>  </prefpane></overlay>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?