gecko-dev/xpfe/components/prefwindow/resources/content/pref-composer.xul
2000-03-14 11:31:54 +00:00

156 lines
6.3 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-2000 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-composer.dtd" >
<window debug="false" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
align="vertical" title="&title.label;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-composer' ); else parent.queuedTag = 'pref-composer'; InitColors();">
<html:script language="JavaScript" src="chrome://pref/content/pref-composer.js"/>
<box type="smallheader" title="&lHeader;" description="&rHeader;"/>
<titledbox orient="vertical">
<box autostretch="never" valign="middle">
<text value="&authorName;"/>
<html:input class="indent" name="author" type="text" id="editorAuthor"
pref="true" preftype="string" prefstring="editor.author" flex="1"/>
</box>
</titledbox>
<titledbox orient="vertical">
<title><text value="&pageColorHeader;"/></title>
<box align="horizontal">
<box align="vertical" flex="0">
<box flex="100%">
<html:label>
&NormalText.label;
</html:label>
<spring flex="100%"/>
<menu id="normaltextmenu" allowevents="true" class="colorpicker">
<html:div id="pref:#000000:color:editor.text_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup id="normalMenuPopup">
<colorpicker allowevents="true" id="normalColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'normaltext', false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="normalText"
pref="true" preftype="color" prefstring="editor.text_color"/>
</box>
<box>
<html:label>
&LinkText.label;
</html:label>
<spring flex="100%"/>
<menu id="linktextmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.link_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'linktext',false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="linkText"
pref="true" preftype="color" prefstring="editor.link_color"/>
</box>
<box>
<html:label>
&ActiveLinkText.label;
</html:label>
<spring flex="100%"/>
<menu id="activelinktextmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.active_link_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'activelinktext',false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="activeLinkText"
pref="true" preftype="color" prefstring="editor.active_link_color"/>
</box>
<box>
<html:label>
&FollowedLinkText.label;
</html:label>
<spring flex="100%"/>
<menu id="followedlinktextmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.followed_link_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'followedlinktext',false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="followedLinkText"
pref="true" preftype="color" prefstring="editor.followed_link_color"/>
</box>
<box>
<html:label>
&BackgroundColor.label;
</html:label>
<spring flex="100%"/>
<menu id="colorpreviewmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.background_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'colorpreview',true);"/>
</menupopup>
</menu>
<html:input type="hidden" id="backgroundColor"
pref="true" preftype="color" prefstring="editor.background_color"/>
</box>
</box>
<spring style="width: 7px;"/>
<box align="vertical" flex="100%" id="colorpreview" basestyle="min-height:50px; width: 100%; border: 1px inset #CCCCCC; padding: 5px; " style="min-height:50px; width: 100%; border: 1px inset #CCCCCC; padding: 5px; ">
<html:div id="normaltext"> &NormalText.label; </html:div>
<spring style="height: 7px;"/>
<html:div id="linktext"> &LinkText.label; </html:div>
<spring style="height: 7px;"/>
<html:div id="activelinktext"> &ActiveLinkText.label; </html:div>
<spring style="height: 7px;"/>
<html:div id="followedlinktext"> &FollowedLinkText.label; </html:div>
</box>
</box>
<spring/>
<box>
<spring/>
<!-- clicking this button should reset the colors below to be same as navigator colors -->
<titledbutton class="dialog push" name="" value="&UseNavigatorColor.label;" />
</box>
<spring/>
</titledbox>
</window>