gecko-dev/xpfe/components/prefwindow/resources/content/pref-composer.xul
1999-12-23 15:24:47 +00:00

215 lines
7.6 KiB
XML

<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape 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/NPL/
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 Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-composer.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="StartUp('Composer'); return InitColors();" align="vertical" title="&title.label;">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:script language="javascript">
function getColorFromWellAndSetValue(menuid,otherId,setbackground)
{
var menu=document.getElementById(menuid);
var colorWell = menu.firstChild.nextSibling;
var color=colorWell.style.backgroundColor;
setColorFromPicker(null,color,otherId,setbackground);
}
function InitColors()
{
getColorFromWellAndSetValue('normaltextmenu','normaltext',false);
getColorFromWellAndSetValue('linktextmenu','linktext',false);
getColorFromWellAndSetValue('activelinktextmenu','activelinktext',false);
getColorFromWellAndSetValue('followedlinktextmenu','followedlinktext',false);
getColorFromWellAndSetValue('colorpreviewmenu','colorpreview',true);
return true;
}
</html:script>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<html:fieldset>
<html:div>
&authorName;
<html:input name="author" type="text" id="pref:string:editor.author" />
</html:div>
<!-- Take out Auto-Save; not supported at this time
<html:div>
<html:input name="autosave" type="checkbox" id="pref:0:int:editor.auto_save" />
<html:label for="pref:0:int:editor.auto_save" accesskey="a" tabindex="0">
&AutoSaveCheck.label;
</html:label>
<html:input name="time" type="text" size="3" value="5" id="pref:5:int:editor.auto_save_delay" />
<html:label for="pref:5:int:editor.auto_save_delay">
&minText;
</html:label>
</html:div>
-->
</html:fieldset>
<!-- External Editors are not supported at this time
<html:fieldset>
<html:legend align="left">
<html:div>&exterLegend.label;</html:div>
</html:legend>
<html:input name="htmlSourceEditorCheckbox" type="checkbox" id="pref:0:int:editor.use_html_editor" />
<html:div>
&htmlSource;
</html:div>
<html:div>
<html:input name="&chooseButton.label;" type="text" id="pref:string:editor.html_editor" />
<titledbutton class="dialog push" name="" value="&chooseButton.label;" />
</html:div>
<html:input name="htmlImageEditorCheckbox" type="checkbox" id="pref:0:int:editor.use_image_editor" />
<html:div>
&img;
</html:div>
<html:div>
<html:input name="chooseButton.label" type="text" id="pref:string:editor.image_editor" />
<titledbutton class="dialog push" name="" value="&chooseButton.label;" />
</html:div>
</html:fieldset>
-->
<html:fieldset>
<html:legend align="left">
<html:div>&pageColorHeader;</html:div>
</html:legend>
<html:div>
<html:input name="color" type="radio" id="pref:0:int:editor.use_custom_colors" checked="true" />
<html:label for="pref:0:int:editor.unknown" tabindex="0">
&UseNavigatorColor.label;
</html:label>
</html:div>
<html:div>
<html:input name="color" type="radio" id="pref:1:int:editor.use_custom_colors" />
<html:label for="pref:1:int:editor.unknown" tabindex="0">
&UseCustomColors.label;
</html:label>
</html:div>
<box align="horizontal" style="width: 100%; height: 100%">
<box align="vertical" flex="1">
<box>
<html:div>
<html:label for="pref:#000000:color:editor.text_color" accesskey="t" tabindex="0">
</html:label>
</html:div>
<menu id="normaltextmenu">
<titledbutton id="normalTitledButton" value="&NormalText.label;" class="popup" align="right"/>
<html:div id="pref:#000000:color:editor.text_color" style="width:30px; background-color:white"/>
<menupopup id="normalMenuPopup">
<colorpicker id="normalColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'normaltext', false);"/>
</menupopup>
</menu>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.link_color" accesskey="l" tabindex="0">
</html:label>
</html:div>
<menu id="linktextmenu">
<titledbutton value="&LinkText.label;" class="popup" align="right"/>
<html:div id="pref:#000000:color:editor.link_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'linktext',false);"/>
</menupopup>
</menu>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.active_link_color" accesskey="c" tabindex="0">
</html:label>
</html:div>
<menu id="activelinktextmenu">
<titledbutton value="&ActiveLinkText.label;" class="popup" align="right"/>
<html:div id="pref:#000000:color:editor.active_link_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'activelinktext',false);"/>
</menupopup>
</menu>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.followed_link_color" accesskey="f" tabindex="0">
</html:label>
</html:div>
<menu id="followedlinktextmenu">
<titledbutton value="&FollowedLinkText.label;" class="popup" align="right"/>
<html:div id="pref:#000000:color:editor.followed_link_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'followedlinktext',false);"/>
</menupopup>
</menu>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.background_color" accesskey="b" tabindex="0">
</html:label>
</html:div>
&colorPick; &BackgroundColor.label;
<menu id="colorpreviewmenu">
<titledbutton value="&BackgroundColor.label;" class="popup" align="right"/>
<html:div id="pref:#000000:color:editor.background_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'colorpreview',true);"/>
</menupopup>
</menu>
</box>
</box>
<box align="vertical" flex="1" id="colorpreview" basestyle="min-width:100px; min-height:50px;" style="min-width:100px; min-height:50px;">
<html:div id="normaltext"> &NormalText.label; </html:div>
<html:div id="linktext"> &LinkText.label; </html:div>
<html:div id="activelinktext"> &ActiveLinkText.label; </html:div>
<html:div id="followedlinktext"> &FollowedLinkText.label; </html:div>
</box>
</box>
</html:fieldset>
</window>