home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / phoenx05.zip / phoenix / chrome / browser.jar / content / browser / pref / pref-fonts.xul < prev    next >
Extensible Markup Language  |  2002-10-10  |  12KB  |  277 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref-fonts.dtd" >
  6. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.       onload="parent.initPanel('chrome://browser/content/pref/pref-fonts.xul');"
  8.       headertitle="&lHeader;">
  9.  
  10.   <stringbundle id="bundle_prefutilities"
  11.                 src="chrome://communicator/locale/pref/prefutilities.properties"/>
  12.   <script type="application/x-javascript" 
  13.           src="chrome://browser/content/pref/pref-fonts.js"/>
  14.   <script type="application/x-javascript">
  15.   <![CDATA[
  16.     var _elementIDs = ["selectLangs"];
  17.   ]]>
  18.   </script>
  19.  
  20.   <groupbox>
  21.     <caption>
  22.       <hbox align="center">
  23.         <label value="&language.label;" 
  24.                accesskey="&language.accesskey;" 
  25.                control="selectLangs"/>
  26.       </hbox>
  27.       <menulist id="selectLangs" oncommand="selectLanguage();"
  28.                 preftype="localizedstring" prefstring="font.language.group"
  29.                 wsm_attributes="value">
  30.         <menupopup>
  31.           <menuitem value="x-western" label="&font.langGroup.latin1;"/>
  32.           <menuitem value="x-central-euro" label="&font.langGroup.latin2;"/>
  33.           <menuitem value="ja" label="&font.langGroup.japanese;"/>
  34.           <menuitem value="zh-TW" label="&font.langGroup.trad-chinese;"/>
  35.           <menuitem value="zh-CN" label="&font.langGroup.simpl-chinese;"/>
  36.           <menuitem value="ko" label="&font.langGroup.korean;"/>
  37.           <menuitem value="x-cyrillic" label="&font.langGroup.cyrillic;"/>
  38.           <menuitem value="x-baltic" label="&font.langGroup.baltic;"/>
  39.           <menuitem value="el" label="&font.langGroup.el;"/>
  40.           <menuitem value="tr" label="&font.langGroup.turkish;"/>
  41.           <menuitem value="x-unicode" label="&font.langGroup.unicode;"/>
  42.           <menuitem value="x-user-def" label="&font.langGroup.user-def;"/>
  43.           <menuitem value="th" label="&font.langGroup.thai;"/>
  44.           <menuitem value="he" label="&font.langGroup.hebrew;"/>
  45.           <menuitem value="ar" label="&font.langGroup.arabic;"/>
  46.         </menupopup>
  47.       </menulist>
  48.     </caption>
  49.     
  50.     <grid>
  51.       <columns>
  52.         <column/>
  53.         <column flex="1"/>
  54.         <column/>
  55.         <column/>
  56.       </columns>
  57.       
  58.       <rows>
  59.         <row>
  60.           <separator class="thin"/>
  61.         </row>
  62.  
  63.         <row align="center">
  64.           <hbox align="center" pack="end">
  65.             <label value="&proportional.label;" 
  66.                    accesskey="&proportional.accesskey;" 
  67.                    control="proportionalFont"/>
  68.           </hbox>
  69.           <menulist id="proportionalFont" flex="1" style="width: 0px;" 
  70.                     preftype="string" prefstring="font.default">
  71.             <menupopup>
  72.               <menuitem value="serif" 
  73.                         label="&useDefaultFontSerif.label;"/>
  74.               <menuitem value="sans-serif" 
  75.                         label="&useDefaultFontSansSerif.label;"/>
  76.             </menupopup>
  77.           </menulist>
  78.            <hbox align="center" pack="end">
  79.              <label value="&sizes.label;"/>
  80.            </hbox>  
  81.           <menulist id="sizeVar" class="small-margin">
  82.             <menupopup>
  83.               <menuitem value="8" label="8"/>
  84.               <menuitem value="9" label="9"/>
  85.               <menuitem value="10" label="10"/>
  86.               <menuitem value="11" label="11"/>
  87.               <menuitem value="12" label="12"/>
  88.               <menuitem value="13" label="13"/>
  89.               <menuitem value="14" label="14"/>
  90.               <menuitem value="15" label="15"/>
  91.               <menuitem value="16" label="16"/>
  92.               <menuitem value="18" label="18"/>
  93.               <menuitem value="20" label="20"/>
  94.               <menuitem value="24" label="24"/>
  95.               <menuitem value="26" label="26"/>
  96.               <menuitem value="28" label="28"/>
  97.               <menuitem value="32" label="32"/>
  98.               <menuitem value="36" label="36"/>
  99.               <menuitem value="40" label="40"/>
  100.               <menuitem value="48" label="48"/>
  101.               <menuitem value="56" label="56"/>
  102.               <menuitem value="64" label="64"/>
  103.               <menuitem value="72" label="72"/>
  104.             </menupopup>
  105.           </menulist>
  106.         </row>
  107.         <row align="center">
  108.           <hbox align="center" pack="end">
  109.             <label value="&serif.label;" 
  110.                    accesskey="&serif.accesskey;" 
  111.                    control="serif"/>
  112.           </hbox>
  113.           <menulist id="serif" flex="1" style="width: 0px;">
  114.             <menupopup/>
  115.           </menulist>
  116.           <spacer/>
  117.         </row>
  118.         <row align="center">
  119.           <hbox align="center" pack="end">
  120.             <label value="&sans-serif.label;" 
  121.                    accesskey="&sans-serif.accesskey;" 
  122.                    control="sans-serif"/>
  123.           </hbox>
  124.           <menulist id="sans-serif" flex="1" style="width: 0px;">
  125.             <menupopup/>
  126.           </menulist>
  127.           <spacer/>
  128.         </row>
  129.         <row align="center">
  130.           <hbox align="center" pack="end">
  131.             <label value="&monospace.label;" 
  132.                    accesskey="&monospace.accesskey;" 
  133.                    control="monospace"/>
  134.           </hbox>
  135.           <menulist id="monospace"
  136.                     flex="1" style="width: 0px;" crop="right">
  137.             <menupopup/>
  138.           </menulist>
  139.           <hbox align="center" pack="end">
  140.             <label value="&sizes.label;"/>
  141.           </hbox>  
  142.           <menulist id="sizeMono">
  143.             <menupopup>
  144.               <menuitem value="8" label="8"/>
  145.               <menuitem value="9" label="9"/>
  146.               <menuitem value="10" label="10"/>
  147.               <menuitem value="11" label="11"/>
  148.               <menuitem value="12" label="12"/>
  149.               <menuitem value="13" label="13"/>
  150.               <menuitem value="14" label="14"/>
  151.               <menuitem value="15" label="15"/>
  152.               <menuitem value="16" label="16"/>
  153.               <menuitem value="18" label="18"/>
  154.               <menuitem value="20" label="20"/>
  155.               <menuitem value="24" label="24"/>
  156.               <menuitem value="26" label="26"/>
  157.               <menuitem value="28" label="28"/>
  158.               <menuitem value="32" label="32"/>
  159.               <menuitem value="36" label="36"/>
  160.               <menuitem value="40" label="40"/>
  161.               <menuitem value="48" label="48"/>
  162.               <menuitem value="56" label="56"/>
  163.               <menuitem value="64" label="64"/>
  164.               <menuitem value="72" label="72"/>
  165.             </menupopup>
  166.           </menulist>
  167.         </row>
  168.       </rows>
  169.     </grid>
  170.     <hbox flex="1">
  171.           <hbox align="center" pack="end">
  172.             <label value="&resolution.label;" 
  173.                    accesskey="&resolution.accesskey;" 
  174.                    control="screenResolution"/>
  175.             <menulist id="screenResolution" 
  176.                       oncommand="changeScreenResolution()"
  177.                       dpi="&resolution.dpival;">
  178.               <menupopup>
  179.                 <menuitem value="" 
  180.                           label="&resolution.dpival;"
  181.                           id="otherResolution"/>
  182.                 <menuitem value="" 
  183.                           label="&resolution.dpival;" 
  184.                           id="defaultResolution"/>
  185.                 <menuitem value="0"
  186.                           label="&resolution.system.label;" 
  187.                           id="systemResolution"
  188.                           hidden="true"/>
  189.                 <menuseparator/>
  190.                 <menuitem id="userResolution" hidden="true"/>
  191.                 <menuitem value="other" label="&resolution.other;"/>
  192.               </menupopup>
  193.             </menulist>
  194.           </hbox>
  195.           <spacer flex="1"/>
  196.           <hbox align="center" pack="end">
  197.             <label value="&minSize.label;"
  198.                    accesskey="&minSize.accesskey;"
  199.                    control="minSize"/>
  200.           <menulist id="minSize">
  201.             <menupopup>
  202.               <menuitem value="0" label="&minSize.none;"/>
  203.               <menuitem value="6" label="6"/>
  204.               <menuitem value="7" label="7"/>
  205.               <menuitem value="8" label="8"/>
  206.               <menuitem value="9" label="9"/>
  207.               <menuitem value="10" label="10"/>
  208.               <menuitem value="11" label="11"/>
  209.               <menuitem value="12" label="12"/>
  210.               <menuitem value="13" label="13"/>
  211.               <menuitem value="14" label="14"/>
  212.               <menuitem value="15" label="15"/>
  213.               <menuitem value="16" label="16"/>
  214.               <menuitem value="18" label="18"/>
  215.               <menuitem value="20" label="20"/>
  216.               <menuitem value="22" label="22"/>
  217.               <menuitem value="24" label="24"/>
  218.             </menupopup>
  219.           </menulist>
  220.         </hbox>
  221.       </hbox>
  222.   </groupbox>
  223.  
  224.   <hbox>
  225.     <groupbox flex="1" id="pageColours">
  226.       <caption label="&color;"/>
  227.       <hbox align="center">
  228.         <label value="&textColor.label;" accesskey="&textColor.accesskey;" control="foregroundtextmenu"/>
  229.         <spacer flex="1"/>
  230.         <colorpicker type="button" id="foregroundtextmenu" palettename="standard"/> 
  231.         <data id="foregroundText" preftype="color" prefstring="browser.display.foreground_color" prefattribute="value" wsm_attributes="value"/>
  232.       </hbox>
  233.       <hbox align="center" style="margin-top: 5px">
  234.         <label value="&backgroundColor.label;" accesskey="&backgroundColor.accesskey;" control="backgroundmenu"/>
  235.         <spacer flex="1"/>
  236.         <colorpicker type="button" id="backgroundmenu" palettename="standard"/> 
  237.         <data id="background" preftype="color" prefstring="browser.display.background_color" prefattribute="value" wsm_attributes="value"/>
  238.       </hbox>
  239.       <separator class="thin"/>
  240.       <hbox align="center">
  241.         <checkbox id="browserUseSystemColors" label="&useSystemColors.label;" accesskey="&useSystemColors.accesskey;"
  242.                   prefstring="browser.display.use_system_colors"/>
  243.       </hbox>
  244.     </groupbox>
  245.       
  246.     <groupbox flex="1">
  247.       <caption label="&links;"/>
  248.       <hbox align="center">
  249.         <label value="&linkColor.label;" accesskey="&linkColor.accesskey;" control="unvisitedlinkmenu"/>
  250.         <spacer flex="1"/>
  251.         <colorpicker type="button" id="unvisitedlinkmenu" palettename="standard"/> 
  252.         <data id="unvisitedLinks" preftype="string" prefstring="browser.anchor_color" prefattribute="value" wsm_attributes="value"/>
  253.       </hbox>
  254.       <hbox align="center" style="margin-top: 5px">
  255.         <label value="&visitedLinkColor.label;" accesskey="&visitedLinkColor.accesskey;" control="visitedlinkmenu"/>
  256.         <spacer flex="1"/>
  257.         <colorpicker type="button" id="visitedlinkmenu" palettename="standard"/> 
  258.         <data id="visitedLinks" preftype="string" prefstring="browser.visited_color" prefattribute="value" wsm_attributes="value"/>
  259.       </hbox>
  260.       <separator class="thin"/>
  261.       <hbox align="center">
  262.         <checkbox id="browserUnderlineAnchors" label="&underlineLinks.label;" accesskey="&underlineLinks.accesskey;"
  263.                   prefstring="browser.underline_anchors"/>
  264.       </hbox>
  265.     </groupbox>
  266.   </hbox>
  267.   <hbox align="center">
  268.     <label value="&alwaysUseMy.label;"/>
  269.     <!-- Unchecking this removes the ability to select dynamic fonts -->
  270.     <checkbox id="useMyFonts" 
  271.               label="&useMyFonts.label;" 
  272.               accesskey="&useMyFonts.accesskey;"/>
  273.     <checkbox id="useMyColors" label="&useMyColors.label;"
  274.               accesskey="&useMyColors.accesskey;"/>
  275.   </hbox>
  276. </page>
  277.