зеркало из https://github.com/mozilla/pjs.git
UI for software update needs to be revised - several CSS and window open flag fixes for various aspects of software update UI (menu, preferences, wizard) to make it look better on OS X. Not quite done yet. r=darin
This commit is contained in:
Родитель
98e5e3d03c
Коммит
8d0ba4dfe4
|
@ -88,14 +88,15 @@
|
|||
label="&helpReleaseNotes.label;"
|
||||
oncommand="openReleaseNotes(event)"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
#ifndef XP_MACOSX
|
||||
<menuseparator id="aboutSeparator"/>
|
||||
#endif
|
||||
<menuitem id="checkForUpdates"
|
||||
accesskey="&updateCmd.accesskey;"
|
||||
label="&updateCmd.label;"
|
||||
class="menuitem-iconic"
|
||||
oncommand="checkForUpdates();"/>
|
||||
#ifndef XP_MACOSX
|
||||
<menuseparator/>
|
||||
#endif
|
||||
<menuitem id="aboutName"
|
||||
accesskey="&aboutCmd.accesskey;"
|
||||
label="&aboutCmd.label;"
|
||||
|
|
|
@ -129,14 +129,14 @@
|
|||
<vbox>
|
||||
<label>&softwareupdateinfo.label;</label>
|
||||
<separator class="thin"/>
|
||||
<vbox align="start">
|
||||
<vbox align="start" class="updateControls">
|
||||
<checkbox id="enableAppUpdate"
|
||||
label="&enableAppUpdate.label;"
|
||||
accesskey="&enableAppUpdate.accesskey;"
|
||||
preference="app.update.enabled"
|
||||
onsyncfrompreference="return gAdvancedPane.updateAppUpdateUI();"/>
|
||||
<vbox class="indent" align="start">
|
||||
<hbox>
|
||||
<vbox class="indent">
|
||||
<hbox align="center">
|
||||
<checkbox id="enableAutoInstall"
|
||||
label="&enableAutoInstall.label;"
|
||||
accesskey="&enableAutoInstall.accesskey;"
|
||||
|
@ -147,7 +147,6 @@
|
|||
label="&autoInstallOptions.label;" accesskey="&autoInstallOptions.accesskey;"
|
||||
oncommand="gAdvancedPane.showAutoInstallOptions();"/>
|
||||
</hbox>
|
||||
<separator class="thin"/>
|
||||
<hbox>
|
||||
<button id="checkNowButton"
|
||||
label="&checkNow.label;" accesskey="&appCheckNow.accesskey;"
|
||||
|
@ -158,12 +157,11 @@
|
|||
</vbox>
|
||||
</vbox>
|
||||
<separator/>
|
||||
<vbox align="start">
|
||||
<vbox align="start" class="updateControls">
|
||||
<checkbox id="enableExtensionUpdate"
|
||||
label="&enableExtensionUpdate.label;"
|
||||
accesskey="&enableExtensionUpdate.accesskey;"
|
||||
preference="extensions.update.autoUpdateEnabled"/>
|
||||
<separator class="thin"/>
|
||||
<hbox class="indent">
|
||||
<button label="&checkNow.label;" accesskey="&extensionsCheckNow.accesskey;"
|
||||
oncommand="gAdvancedPane.checkForAddonUpdates();"
|
||||
|
|
|
@ -206,3 +206,14 @@ caption {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update Preferences
|
||||
*/
|
||||
#autoInstallOptions {
|
||||
-moz-margin-start: 20px;
|
||||
}
|
||||
|
||||
.updateControls {
|
||||
-moz-margin-start: 10px;
|
||||
}
|
||||
|
||||
|
|
|
@ -805,7 +805,7 @@
|
|||
<parameter name="aFeatures"/>
|
||||
<parameter name="aParams"/>
|
||||
<body>
|
||||
return openDialog(aURL, "", "modal,centerscreen" + (aFeatures != "" ? ("," + aFeatures) : ""), aParams);
|
||||
return openDialog(aURL, "", "modal,centerscreen,resizable=no" + (aFeatures != "" ? ("," + aFeatures) : ""), aParams);
|
||||
</body>
|
||||
</method>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!ENTITY update.title "Automatic Update">
|
||||
<!ENTITY window.width "30em">
|
||||
<!ENTITY window.height "25em">
|
||||
<!ENTITY window.height "27em">
|
||||
|
||||
<!ENTITY update.intro "Automatically download and install updates for:">
|
||||
|
||||
|
|
|
@ -51,5 +51,6 @@ function init() {
|
|||
var cancelbutton = document.documentElement.getButton("cancel");
|
||||
cancelbutton.label = closebuttonlabel;
|
||||
cancelbutton.focus();
|
||||
cancelbutton.setAttribute("default", "true");
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
<label>&incompatible.intro;</label>
|
||||
<separator/>
|
||||
<listbox id="incompatibleItems" rows="10"/>
|
||||
<listbox id="incompatibleItems" rows="5"/>
|
||||
<separator/>
|
||||
<label>&incompatible.update;</label>
|
||||
<separator class="thin"/>
|
||||
|
|
|
@ -109,19 +109,20 @@
|
|||
</vbox>
|
||||
</hbox>
|
||||
<link id="updateMoreInfoURL">
|
||||
<label>&clickHere.label;</label>
|
||||
<label id="updateMoreInfoURLLabel">&clickHere.label;</label>
|
||||
</link>
|
||||
</vbox>
|
||||
</deck>
|
||||
<separator flex="1"/>
|
||||
</vbox>
|
||||
<separator class="groove"/>
|
||||
<separator id="separatorGroove" class="groove"/>
|
||||
<hbox id="installButtons">
|
||||
<button id="downloadLater" label="&later.label;" accesskey="&later.accesskey;"
|
||||
oncommand="gUpdatesAvailablePage.onInstallLater();"/>
|
||||
<spacer flex="1"/>
|
||||
<button id="downloadNow" label="&download.label;" accesskey="&download.accesskey;"
|
||||
oncommand="gUpdatesAvailablePage.onInstallNow();"/>
|
||||
oncommand="gUpdatesAvailablePage.onInstallNow();"
|
||||
default="true"/>
|
||||
</hbox>
|
||||
</wizardpage>
|
||||
|
||||
|
@ -145,7 +146,7 @@
|
|||
</link>
|
||||
</hbox>
|
||||
<progressmeter id="downloadProgress" mode="undetermined"/>
|
||||
<hbox align="start">
|
||||
<hbox id="downloadStatusLine">
|
||||
<image id="downloadThrobber"/>
|
||||
<description id="downloadStatus" flex="1">&connecting.label;</description>
|
||||
<button id="pauseButton" oncommand="gDownloadingPage.onPause();"
|
||||
|
|
|
@ -2340,7 +2340,7 @@ UpdatePrompt.prototype = {
|
|||
win.focus();
|
||||
}
|
||||
else {
|
||||
var openFeatures = "chrome,centerscreen,dialog";
|
||||
var openFeatures = "chrome,centerscreen,dialog=no,resizable=no,titlebar,toolbar=no";
|
||||
if (features)
|
||||
openFeatures += "," + features;
|
||||
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
|
||||
|
|
|
@ -89,8 +89,8 @@ prefwindow {
|
|||
font: message-box;
|
||||
}
|
||||
|
||||
prefwindow {
|
||||
padding: 8px 10px 10px 8px;
|
||||
prefwindow[type="child"] {
|
||||
padding: 18px 20px 15px 18px !important;
|
||||
}
|
||||
|
||||
/* deprecated */
|
||||
|
|
|
@ -29,6 +29,10 @@ link:focus {
|
|||
border: 1px dotted black;
|
||||
}
|
||||
|
||||
.wizard-page-box {
|
||||
padding: 15px 10px 15px 10px;
|
||||
}
|
||||
|
||||
/**
|
||||
* License Page
|
||||
*/
|
||||
|
@ -48,7 +52,7 @@ license {
|
|||
margin-top: 3px;
|
||||
}
|
||||
.licenseLoadingThrobber[state="loading"] {
|
||||
list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif");
|
||||
list-style-image: url("chrome://global/skin/icons/loading_16.gif");
|
||||
}
|
||||
.licenseLoadingThrobber[state="error"] {
|
||||
list-style-image: url("chrome://global/skin/icons/notfound.png");
|
||||
|
@ -58,37 +62,39 @@ license {
|
|||
* Update Found Page
|
||||
*/
|
||||
#updatesfoundContent {
|
||||
margin: 10px 44px 10px 44px;
|
||||
-moz-margin-start: 8px;
|
||||
-moz-margin-end: 8px;
|
||||
}
|
||||
|
||||
wizard[currentpageid="updatesfound"] .wizard-page-box {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#installButtons {
|
||||
margin: 10px;
|
||||
#moreDetails {
|
||||
margin: 1px 0px 4px 3px;
|
||||
}
|
||||
|
||||
#moreDetails {
|
||||
margin: 1px 5px 4px 3px;
|
||||
#updateMoreInfoURL, #updateMoreInfoURLLabel {
|
||||
-moz-margin-start: 0px;
|
||||
-moz-margin-end: 0px;
|
||||
}
|
||||
|
||||
#downloadNow {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#downloadNow > .button-box {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
#updateForMoreInfo {
|
||||
margin-left: 5px;
|
||||
#downloadNow, #downloadLater {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#updateName, #updateFinishedName {
|
||||
font-weight: bold;
|
||||
font-size: larger;
|
||||
-moz-margin-start: 0px;
|
||||
}
|
||||
|
||||
#separatorGroove {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#alertImage {
|
||||
|
@ -117,10 +123,10 @@ wizard[currentpageid="updatesfound"] .wizard-page-box {
|
|||
}
|
||||
#downloadThrobber {
|
||||
margin: 5px 3px 0px 5px;
|
||||
list-style-image: url("chrome://global/skin/throbber/Throbber-small.png");
|
||||
list-style-image: url("chrome://global/skin/icons/notloading_16.png");
|
||||
}
|
||||
#downloadThrobber[state="loading"] {
|
||||
list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif");
|
||||
list-style-image: url("chrome://global/skin/icons/loading_16.gif");
|
||||
}
|
||||
|
||||
#verificationFailedIcon {
|
||||
|
@ -128,6 +134,10 @@ wizard[currentpageid="updatesfound"] .wizard-page-box {
|
|||
margin: 5px 3px 0px 5px;
|
||||
}
|
||||
|
||||
#downloadStatusLine {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
/**
|
||||
* Error Page
|
||||
*/
|
||||
|
@ -173,9 +183,14 @@ update {
|
|||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Advanced Preferences
|
||||
*/
|
||||
.updatePrefsInfo {
|
||||
font-size: smaller;
|
||||
margin-left: 27px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px;
|
||||
-moz-margin-start: 22px;
|
||||
-moz-margin-end: 10px;
|
||||
}
|
||||
|
||||
|
|
|
@ -122,6 +122,9 @@ wizard[currentpageid="updatesfound"] .wizard-page-box {
|
|||
#downloadThrobber[state="loading"] {
|
||||
list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif");
|
||||
}
|
||||
#downloadStatusLine {
|
||||
-moz-box-align: start;
|
||||
}
|
||||
|
||||
#verificationFailedIcon {
|
||||
list-style-image: url("chrome://global/skin/icons/notfound.png");
|
||||
|
|
Загрузка…
Ссылка в новой задаче