RetroZilla/editor/ui/composer/content/pref-editing.xul
2015-10-20 23:03:22 -04:00

154 lines
7.4 KiB
XML

<?xml version="1.0"?>
<!-- ***** 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 Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is
Netscape Communications Corporation.
Portions created by the Initial Developer are Copyright (C) 1998-2000
the Initial Developer. All Rights Reserved.
Contributor(s):
Alternatively, the contents of this file may be used under the terms of
either of 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 ***** -->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<!DOCTYPE page SYSTEM "chrome://editor/locale/pref-editing.dtd">
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://editor/content/pref-editing.xul');"
headertitle="&pref.editing.title;">
<script lanugage="JavaScript">
<![CDATA[
var _elementIDs = ["editorAuthor", "useCustomColors", "textData", "linkData", "aLinkData", "fLinkData", "backgroundColorData", "backgroundImageData"];
]]>
</script>
<script type="application/x-javascript" src="chrome://editor/content/pref-composer.js"/>
<script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
<script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
<vbox>
<label value="&authorName.label;" accesskey="&authorName.accesskey;" control="editorAuthor"/>
<hbox>
<textbox id="editorAuthor" flex="1"
prefstring="editor.author"/>
<spacer flex="1"/>
</hbox>
</vbox>
<spacer class="smallspacer"/>
<groupbox align="start">
<caption label="&pageColorHeader;"/>
<radiogroup id="useCustomColors"
preftype="bool" prefstring="editor.use_custom_colors">
<radio id="DefaultColorsRadio"
value="false"
label="&defaultColorsRadio.label;"
accesskey="&defaultColors.accesskey;"
oncommand="UseDefaultColors();"/>
<radio id="CustomColorsRadio"
value="true" label="&customColorsRadio.label;"
accesskey="&customColors.accesskey;"
oncommand="UseCustomColors()"/>
</radiogroup>
<hbox class="indent">
<grid>
<columns><column/><column/></columns>
<rows>
<row align="center">
<label id="Text" value="&normalText.label;&colon.character;"
accesskey="&normalText.accesskey;" control="TextButton"/>
<button id="TextButton" class="color-button" oncommand="GetColorAndUpdate('textCW');">
<spacer id="textCW" class="color-well"/>
</button>
<data id="textData" pref="true" preftype="color" prefstring="editor.text_color" prefattribute="value" wsm_attributes="value"/>
</row>
<row align="center">
<label id="Link" value="&linkText.label;&colon.character;"
accesskey="&linkText.accesskey;" control="LinkButton"/>
<button id="LinkButton" class="color-button" oncommand="GetColorAndUpdate('linkCW');">
<spacer id="linkCW" class="color-well"/>
</button>
<data id="linkData" pref="true" preftype="color" prefstring="editor.link_color" prefattribute="value" wsm_attributes="value"/>
</row>
<row align="center">
<label id="Active" value="&activeLinkText.label;&colon.character;"
accesskey="&activeLinkText.accesskey;" control="ActiveLinkButton"/>
<button id="ActiveLinkButton" class="color-button" oncommand="GetColorAndUpdate('activeCW');">
<spacer id="activeCW" class="color-well"/>
</button>
<data id="aLinkData" pref="true" preftype="color" prefstring="editor.active_link_color" prefattribute="value" wsm_attributes="value"/>
</row>
<row align="center">
<label id="Visited" value ="&visitedLinkText.label;&colon.character;"
accesskey="&visitedLinkText.accesskey;" control="VisitedLinkButton"/>
<button id="VisitedLinkButton" class="color-button" oncommand="GetColorAndUpdate('visitedCW');">
<spacer id="visitedCW" class="color-well"/>
</button>
<data id="fLinkData" pref="true" preftype="color" prefstring="editor.followed_link_color" prefattribute="value" wsm_attributes="value"/>
</row>
<row align="center">
<label id="Background" value="&background.label;"
accesskey="&background.accesskey;" control="BackgroundButton"/>
<button id="BackgroundButton" class="color-button" oncommand="GetColorAndUpdate('backgroundCW');">
<spacer id="backgroundCW" class="color-well"/>
</button>
<data id="backgroundColorData" pref="true" preftype="color" prefstring="editor.background_color" prefattribute="value" wsm_attributes="value"/>
</row>
</rows>
</grid>
<vbox id="ColorPreview" flex="1">
<spacer flex="1"/>
<label class="larger" id="NormalText" value="&normalText.label;"/>
<spacer flex="1"/>
<label class="larger" id="LinkText" value="&linkText.label;"/>
<spacer flex="1"/>
<label class="larger" id="ActiveLinkText" value="&activeLinkText.label;"/>
<spacer flex="1"/>
<label class="larger" id="VisitedLinkText" value="&visitedLinkText.label;"/>
<spacer flex="1"/>
</vbox>
<spacer flex="1"/>
</hbox>
<spacer class="spacer"/>
<label value="&backgroundImage.label;" accesskey="&backgroundImage.accesskey;" control="BackgroundImageInput"/>
<hbox align="center">
<textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage();" style="min-width: 23em" flex="1" class="uri-element">
<observes element="backgroundImageData" attribute="disabled"/>
</textbox>
<button label="&chooseFile.label;" accesskey="&chooseFile.accesskey;"
oncommand="ChooseImageFile()">
<observes element="backgroundImageData" attribute="disabled"/>
</button>
<data id="backgroundImageData" preftype="string" prefstring="editor.default_background_image" prefattribute="value"/>
</hbox>
</groupbox>
</page>