2000-08-05 06:21:59 +04:00
|
|
|
<?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://communicator/skin/" type="text/css"?>
|
2000-09-15 10:08:51 +04:00
|
|
|
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
|
2001-04-05 23:53:13 +04:00
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
|
2000-08-05 06:21:59 +04:00
|
|
|
|
2000-08-11 10:17:45 +04:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://editor/locale/pref-editing.dtd">
|
2000-08-05 06:21:59 +04:00
|
|
|
|
|
|
|
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
class="color-dialog"
|
|
|
|
orient="vertical"
|
2000-08-11 10:17:45 +04:00
|
|
|
onload="parent.initPanel('chrome://editor/content/pref-editing.xul');">
|
2000-08-05 06:21:59 +04:00
|
|
|
|
|
|
|
<script lanugage="JavaScript">
|
|
|
|
<![CDATA[
|
2000-12-24 09:40:52 +03:00
|
|
|
var _elementIDs = ["editorAuthor", "useCustomColors", "textData", "linkData", "aLinkData", "fLinkData", "backgroundColorData", "backgroundImageData"];
|
2000-08-05 06:21:59 +04:00
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
|
2001-03-13 18:35:07 +03:00
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/pref-composer.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
|
2001-04-01 09:02:07 +04:00
|
|
|
|
2000-08-05 06:21:59 +04:00
|
|
|
<box class="box-smallheader" title="&lHeader;"/>
|
|
|
|
|
|
|
|
<titledbox orient="vertical">
|
2001-03-22 03:59:29 +03:00
|
|
|
<label value="&authorName.label;"/>
|
2001-03-22 03:15:47 +03:00
|
|
|
<textbox id="editorAuthor" flex="1"
|
2000-08-05 06:21:59 +04:00
|
|
|
pref="true" preftype="string" prefstring="editor.author"
|
|
|
|
prefattribute="value"/>
|
|
|
|
</titledbox>
|
|
|
|
|
|
|
|
<titledbox orient="vertical">
|
2001-03-22 03:59:29 +03:00
|
|
|
<label value="&pageColorHeader;"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
<box orient="horizontal">
|
2000-08-05 06:21:59 +04:00
|
|
|
<box orient="vertical">
|
|
|
|
<radiogroup id="useCustomColors" orient="vertical" autostretch="never"
|
2000-08-24 04:28:20 +04:00
|
|
|
pref="true" preftype="bool" prefstring="editor.use_custom_colors"
|
2001-03-22 03:59:29 +03:00
|
|
|
prefattribute="value">
|
2000-09-15 10:08:51 +04:00
|
|
|
<radio group="useCustomColors" id="DefaultColorsRadio"
|
2001-03-22 03:59:29 +03:00
|
|
|
value="false"
|
|
|
|
label="&defaultColorsRadio.label;"
|
2000-09-15 10:08:51 +04:00
|
|
|
accesskey="&defaultColors.accesskey;"
|
|
|
|
oncommand="UseDefaultColors();"/>
|
|
|
|
<text class="label" value="&defaultColorsMsg.label;" style="margin-left: 26px"/>
|
|
|
|
<radio group="useCustomColors" id="CustomColorsRadio"
|
2001-03-22 03:59:29 +03:00
|
|
|
value="true" label="&customColorsRadio.label;"
|
2000-09-15 10:08:51 +04:00
|
|
|
accesskey="&customColors.accesskey;"
|
|
|
|
oncommand="UseCustomColors()"/>
|
2000-08-05 06:21:59 +04:00
|
|
|
</radiogroup>
|
2000-09-15 10:08:51 +04:00
|
|
|
<spring class="bigspacer"/>
|
|
|
|
<box class="big-left-margin">
|
|
|
|
<grid>
|
|
|
|
<columns><column/><column/></columns>
|
|
|
|
<rows>
|
|
|
|
<row valign="middle" autostretch="never">
|
|
|
|
<text class="label" id="Text" value="&normalText.label;&colon.character;" />
|
|
|
|
<stack>
|
2001-03-22 03:59:29 +03:00
|
|
|
<button id="TextButton" class="dialog color-button" oncommand="GetColorAndUpdate('textCW');"/>
|
|
|
|
<box autostretch="never" valign="middle" mousethrough="always">
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
<spring id="textCW" class="color-well"/>
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</box>
|
|
|
|
</stack>
|
2000-10-13 09:00:47 +04:00
|
|
|
<data id="textData" pref="true" preftype="color" prefstring="editor.text_color" prefattribute="value" wsm_attributes="value"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</row>
|
|
|
|
<row valign="middle" autostretch="never">
|
|
|
|
<text class="label" id="Link" value="&linkText.label;&colon.character;" />
|
|
|
|
<stack>
|
2001-03-22 03:59:29 +03:00
|
|
|
<button id="LinkButton" class="dialog color-button" oncommand="GetColorAndUpdate('linkCW');"/>
|
|
|
|
<box autostretch="never" valign="middle" mousethrough="always">
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
<spring id="linkCW" class="color-well"/>
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</box>
|
|
|
|
</stack>
|
2000-10-13 09:00:47 +04:00
|
|
|
<data id="linkData" pref="true" preftype="color" prefstring="editor.link_color" prefattribute="value" wsm_attributes="value"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</row>
|
|
|
|
<row valign="middle" autostretch="never">
|
|
|
|
<text class="label" id="Active" value="&activeLinkText.label;&colon.character;" />
|
|
|
|
<stack>
|
2001-03-22 03:59:29 +03:00
|
|
|
<button id="ActiveLinkButton" class="dialog color-button" oncommand="GetColorAndUpdate('activeCW');"/>
|
|
|
|
<box autostretch="never" valign="middle" mousethrough="always">
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
<spring id="activeCW" class="color-well"/>
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</box>
|
|
|
|
</stack>
|
2000-10-13 09:00:47 +04:00
|
|
|
<data id="aLinkData" pref="true" preftype="color" prefstring="editor.active_link_color" prefattribute="value" wsm_attributes="value"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</row>
|
|
|
|
<row valign="middle" autostretch="never">
|
|
|
|
<text class="label" id="Visited" value ="&visitedLinkText.label;&colon.character;" />
|
|
|
|
<stack>
|
2001-03-22 03:59:29 +03:00
|
|
|
<button id="VisitedLinkButton" class="dialog color-button" oncommand="GetColorAndUpdate('visitedCW');"/>
|
|
|
|
<box autostretch="never" valign="middle" mousethrough="always">
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
<spring id="visitedCW" class="color-well"/>
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</box>
|
2000-10-13 09:00:47 +04:00
|
|
|
<data id="fLinkData" pref="true" preftype="color" prefstring="editor.followed_link_color" prefattribute="value" wsm_attributes="value"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</stack>
|
|
|
|
</row>
|
|
|
|
<row valign="middle" autostretch="never">
|
|
|
|
<text class="label" id="Background" value="&background.label;" />
|
|
|
|
<stack>
|
2001-03-22 03:59:29 +03:00
|
|
|
<button id="BackgroundButton" class="dialog color-button" oncommand="GetColorAndUpdate('backgroundCW');"/>
|
|
|
|
<box autostretch="never" valign="middle" mousethrough="always">
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
<spring id="backgroundCW" class="color-well"/>
|
2001-02-02 03:14:43 +03:00
|
|
|
<spring flex="1"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</box>
|
|
|
|
</stack>
|
2000-10-13 09:00:47 +04:00
|
|
|
<data id="backgroundColorData" pref="true" preftype="color" prefstring="editor.background_color" prefattribute="value" wsm_attributes="value"/>
|
2000-09-15 10:08:51 +04:00
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
<spring flex="1"/>
|
2000-08-05 06:21:59 +04:00
|
|
|
</box>
|
|
|
|
</box>
|
2000-09-15 10:08:51 +04:00
|
|
|
<box orient="vertical" id="ColorPreview" flex="1">
|
|
|
|
<spring flex="1"/>
|
|
|
|
<text class="label larger" id="NormalText" value="&normalText.label;"/>
|
|
|
|
<spring flex="1"/>
|
|
|
|
<text class="label larger" id="LinkText" value="&linkText.label;"/>
|
|
|
|
<spring flex="1"/>
|
|
|
|
<text class="label larger" id="ActiveLinkText" value="&activeLinkText.label;"/>
|
|
|
|
<spring flex="1"/>
|
|
|
|
<text class="label larger" id="VisitedLinkText" value="&visitedLinkText.label;"/>
|
|
|
|
<spring flex="1"/>
|
|
|
|
</box>
|
|
|
|
</box>
|
2000-10-13 09:00:47 +04:00
|
|
|
<spring class="spacer"/>
|
2000-08-05 06:21:59 +04:00
|
|
|
<separator class="thin"/>
|
|
|
|
|
2000-09-15 10:08:51 +04:00
|
|
|
<text class="label" value="&backgroundImage.label;" accesskey="&backgroundImage.accesskey;"/>
|
|
|
|
<box valign="middle" autostretch="never">
|
2001-03-22 03:15:47 +03:00
|
|
|
<textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage();" style="min-width : 16em"/>
|
2001-03-22 03:59:29 +03:00
|
|
|
<button class="dialog" label="&chooseFile.label;" accesskey="&chooseFile.accesskey;"
|
2000-09-15 10:08:51 +04:00
|
|
|
oncommand="ChooseImageFile()"/>
|
|
|
|
<data id="backgroundImageData" pref="true" preftype="string" prefstring="editor.default_background_image" prefattribute="value"/>
|
2000-08-05 06:21:59 +04:00
|
|
|
</box>
|
|
|
|
|
2001-03-22 03:59:29 +03:00
|
|
|
</titledbox>
|
2000-08-05 06:21:59 +04:00
|
|
|
</window>
|