зеркало из https://github.com/mozilla/gecko-dev.git
Polish tweaks.
This commit is contained in:
Родитель
e2562a99d8
Коммит
71f1795451
|
@ -34,14 +34,49 @@
|
|||
|
||||
<script type="application/x-javascript">
|
||||
<![CDATA[
|
||||
var _elementIDs = ["advancedJavaAllow", "useProgressDialogs"];
|
||||
var _elementIDs = ["advancedJavaAllow", "advancedMailFTP", "advancedMailFTPAddress", "useProgressDialogs",
|
||||
"imageLooping"];
|
||||
|
||||
function Startup() {
|
||||
ftpCheck();
|
||||
}
|
||||
function ftpCheck() {
|
||||
var checked = document.getElementById("advancedMailFTP").checked;
|
||||
var field = document.getElementById("advancedMailFTPAddress");
|
||||
field.disabled = !checked;
|
||||
if (checked)
|
||||
field.focus();
|
||||
}
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<checkbox id="advancedJavaAllow" label="&enbJavaCheck.label;" accesskey="&enbJavaCheck.accesskey;"
|
||||
prefstring="security.enable_java"/>
|
||||
<checkbox id="useProgressDialogs" label="&useProgressDialogs.label;" accesskey="&useProgressDialogs.accesskey;"
|
||||
prefstring="browser.downloads.useProgressDialogs"/>
|
||||
<groupbox>
|
||||
<caption label="&general.label;"/>
|
||||
<checkbox id="advancedJavaAllow" label="&enbJavaCheck.label;" accesskey="&enbJavaCheck.accesskey;"
|
||||
prefstring="security.enable_java"/>
|
||||
<checkbox id="advancedMailFTP" label="&sendAddFtpCheck.label;" accesskey="&sendAddFtpCheck.accesskey;"
|
||||
prefstring="advanced.mailftp"
|
||||
oncommand="ftpCheck();"/>
|
||||
<hbox class="indent" flex="1">
|
||||
<textbox id="advancedMailFTPAddress"
|
||||
preftype="string" prefstring="network.ftp.anonymous_password"
|
||||
flex="2"/>
|
||||
</hbox>
|
||||
<checkbox id="useProgressDialogs" label="&useProgressDialogs.label;" accesskey="&useProgressDialogs.accesskey;"
|
||||
prefstring="browser.downloads.useProgressDialogs"/>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption label="&animLoopingTitle.label;"/>
|
||||
<radiogroup id="imageLooping"
|
||||
preftype="string" prefstring="image.animation_mode">
|
||||
<radio value="normal" label="&animLoopAsSpecified.label;"
|
||||
accesskey="&animLoopAsSpecified.accesskey;"/>
|
||||
<radio value="once" label="&animLoopOnce.label;"
|
||||
accesskey="&animLoopOnce.accesskey;"/>
|
||||
<radio value="none" label="&animLoopNever.label;"
|
||||
accesskey="&animLoopNever.accesskey;"/>
|
||||
</radiogroup>
|
||||
</groupbox>
|
||||
</page>
|
||||
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<groupbox flex="1">
|
||||
<caption label="&proxyTitle.label;"/>
|
||||
|
||||
<radiogroup id="networkProxyType" prefstring="network.proxy.type" align="stretch">
|
||||
<radiogroup id="networkProxyType" prefstring="network.proxy.type">
|
||||
<radio value="0" label="&directTypeRadio.label;" accesskey="&directTypeRadio.accesskey;" oncommand="DoEnabling();"/>
|
||||
<radio value="1" label="&manualTypeRadio.label;" accesskey="&manualTypeRadio.accesskey;" oncommand="DoEnabling();"/>
|
||||
<grid class="indent" flex="1">
|
||||
|
|
|
@ -285,7 +285,7 @@
|
|||
</groupbox>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<label value="Always use my: "/>
|
||||
<label value="&alwaysUseMy.label;"/>
|
||||
<!-- Unchecking this removes the ability to select dynamic fonts -->
|
||||
<checkbox id="useMyFonts"
|
||||
label="&useMyFonts.label;"
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
</groupbox>
|
||||
<groupbox orient="horizontal">
|
||||
<caption label="&cookies.label;"/>
|
||||
<vbox flex="1" align="start">
|
||||
<vbox flex="1">
|
||||
<label value="&cookieExplanation.label;"/>
|
||||
<separator class="thin"/>
|
||||
<checkbox id="enableCookies"
|
||||
|
@ -143,7 +143,7 @@
|
|||
</groupbox>
|
||||
<groupbox orient="horizontal">
|
||||
<caption label="&images.label;"/>
|
||||
<vbox flex="1" align="start">
|
||||
<vbox flex="1">
|
||||
<checkbox id="enableImages"
|
||||
oncommand="document.getElementById('imageBroadcaster').setAttribute('disabled', this.checked ? 'false' : 'true');"
|
||||
label="&enableImages.label;" accesskey="&enableImages.accesskey;"
|
||||
|
|
|
@ -7,3 +7,14 @@
|
|||
|
||||
<!ENTITY useProgressDialogs.label "Display a progress window when starting a download">
|
||||
<!ENTITY useProgressDialogs.accesskey "D">
|
||||
|
||||
<!ENTITY animLoopingTitle.label "Animated images should loop">
|
||||
<!ENTITY animLoopAsSpecified.label "As many times as the image specifies">
|
||||
<!ENTITY animLoopAsSpecified.accesskey "m">
|
||||
<!ENTITY animLoopOnce.label "Once">
|
||||
<!ENTITY animLoopOnce.accesskey "O">
|
||||
<!ENTITY animLoopNever.label "Never">
|
||||
<!ENTITY animLoopNever.accesskey "v">
|
||||
<!ENTITY sendAddFtpCheck.label "Send this email address as anonymous FTP password:">
|
||||
<!ENTITY sendAddFtpCheck.accesskey "e">
|
||||
<!ENTITY general.label "General">
|
||||
|
|
|
@ -91,4 +91,4 @@
|
|||
<!ENTITY useMyColors.accesskey "C">
|
||||
<!ENTITY useMyFonts.label "Fonts">
|
||||
<!ENTITY useMyFonts.accesskey "F">
|
||||
|
||||
<!ENTITY alwaysUseMy.label "Always use my: ">
|
|
@ -64,7 +64,11 @@ function initDialog()
|
|||
var mode = gToolbox.getAttribute("mode");
|
||||
document.getElementById("modelist").value = mode;
|
||||
var iconSize = gToolbox.getAttribute("iconsize");
|
||||
document.getElementById("smallicons").checked = iconSize == "small";
|
||||
var smallIconsCheckbox = document.getElementById("smallicons");
|
||||
if (mode == "text")
|
||||
smallIconsCheckbox.disabled = true;
|
||||
else
|
||||
smallIconsCheckbox.checked = iconSize == "small";
|
||||
|
||||
// Build up the palette of other items.
|
||||
buildPalette();
|
||||
|
|
|
@ -161,19 +161,18 @@ image {
|
|||
/********** checkbox **********/
|
||||
|
||||
checkbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox");
|
||||
-moz-binding: url("chrome://global/content/widgets/checkbox.xml#checkbox");
|
||||
}
|
||||
|
||||
/********** radio **********/
|
||||
|
||||
radiogroup {
|
||||
-moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup");
|
||||
-moz-binding: url("chrome://global/content/widgets/radio.xml#radiogroup");
|
||||
-moz-box-orient: vertical;
|
||||
-moz-box-align: start;
|
||||
}
|
||||
|
||||
radio {
|
||||
-moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
|
||||
-moz-binding: url("chrome://global/content/widgets/radio.xml#radio");
|
||||
}
|
||||
|
||||
/******** groupbox *********/
|
||||
|
|
|
@ -10,11 +10,13 @@ toolkit.jar:
|
|||
content/global/customizeToolbar.js (content/customizeToolbar.js)
|
||||
content/global/customizeToolbar.css (content/customizeToolbar.css)
|
||||
+ content/global/viewZoomOverlay.js (content/viewZoomOverlay.js)
|
||||
+ content/global/widgets/autocomplete.xml (content/widgets/autocomplete.xml)
|
||||
+ content/global/widgets/browser.xml (content/widgets/browser.xml)
|
||||
+ content/global/widgets/tabbrowser.xml (content/widgets/tabbrowser.xml)
|
||||
+ content/global/widgets/tabbox.xml (content/widgets/tabbox.xml)
|
||||
+ content/global/widgets/textbox.xml (content/widgets/textbox.xml)
|
||||
content/global/widgets/autocomplete.xml (content/widgets/autocomplete.xml)
|
||||
content/global/widgets/browser.xml (content/widgets/browser.xml)
|
||||
content/global/widgets/tabbrowser.xml (content/widgets/tabbrowser.xml)
|
||||
content/global/widgets/tabbox.xml (content/widgets/tabbox.xml)
|
||||
content/global/widgets/textbox.xml (content/widgets/textbox.xml)
|
||||
content/global/widgets/radio.xml (content/widgets/radio.xml)
|
||||
content/global/widgets/checkbox.xml (content/widgets/checkbox.xml)
|
||||
|
||||
en-US.jar:
|
||||
+ locale/en-US/global/charset.dtd (locale/charset.dtd)
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
<xul:image class="radio-check" xbl:inherits="selected,checked,disabled"/>
|
||||
</xul:hbox>
|
||||
</xul:hbox>
|
||||
<xul:hbox class="radio-label-box" flex="1">
|
||||
<xul:hbox class="radio-label-box">
|
||||
<xul:image class="radio-icon" xbl:inherits="src"/>
|
||||
<xul:label class="radio-label" xbl:inherits="xbl:text=label,accesskey,crop" flex="1"/>
|
||||
<xul:label class="radio-label" xbl:inherits="xbl:text=label,accesskey,crop"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
@ -28,4 +28,4 @@
|
|||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
</bindings>
|
|
@ -39,7 +39,6 @@ toolbarbutton {
|
|||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
padding: 2px;
|
||||
background-color: transparent;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче