This commit is contained in:
rgoodger%ihug.co.nz 2000-01-13 04:19:46 +00:00
parent 567c4a4565
commit 064abf35b7
20 changed files with 104 additions and 61 deletions

View File

@ -323,7 +323,7 @@ Contributor(s): ______________________________________. -->
<box id="personaltoolbar-endcap" align="vertical" width="68px"/>
</toolbar>
<toolbar id="nav-bar" class="main-bar" chromeclass="toolbar" persist="collapsed">
<toolbar id="nav-bar" class="decorated main-bar" chromeclass="toolbar" persist="collapsed">
<box align="horizontal" flex="100%" style="overflow: hidden">
<titledbutton id="back-button" class="button32" crop="right" align="top" observes="canGoBack" />

View File

@ -208,39 +208,6 @@ spring.personaltoolbarspacer {
width: 1em;
}
/**
* Navigation Toolbar
*/
toolbar#nav-bar {
background-image: url("chrome://navigator/skin/navbar-bg.gif");
background-repeat: repeat-x;
background-position: 0% 0%;
background-color: #CCCCCC;
padding: 0px;
padding-bottom: 4px;
}
toolbar#nav-bar #toolbar_throbber_box {
background-color: #CCCCCC;
min-width: 68px;
max-width: 68px;
background-image: url("chrome://navigator/skin/n-box-navbar.gif");
background-repeat: no-repeat;
background-position: 100% 0%;
}
toolbar#nav-bar titledbutton#Throbber
{
margin-top: 0px;
margin-left: 9px;
}
toolbar#nav-bar titledbutton#Throbber:active {
margin-top: 1px;
margin-left: 10px;
}
/**
* toolbox
*/

View File

@ -70,3 +70,14 @@ function moveToAlertPosition()
window.moveTo( opener.screenX + xOffset, opener.screenY + yOffset );
}
function centerWindowOnScreen()
{
var xOffset = screen.availWidth/2 - window.outerWidth/2;
var yOffset = screen.availHeight/2 - window.outerHeight/2; //(opener.outerHeight *2)/10;
xOffset = ( xOffset > 0 ) ? xOffset : 0;
yOffset = ( yOffset > 0 ) ? yOffset : 0;
dump( "Move window by " + xOffset + ","+yOffset+"\n");
window.moveTo( xOffset, yOffset);
}

View File

@ -17,25 +17,25 @@
value="&cancelButton.label;"
style="display:none;"
onclick="doButton3()"/>
<spring style="width:10px"/>
<spring id="Button3Spring" style="width:10px"/>
<titledbutton id="Button2"
class="dialog push"
value="&cancelButton.label;"
style="display:none;"
onclick="doButton2()"/>
<spring style="width:10px"/>
<spring id="Button2Spring" style="width:10px"/>
<titledbutton id="cancel"
class="dialog push"
value="&cancelButton.label;"
onclick="doCancelButton()"/>
<spring style="width:10px"/>
<spring id="CancelSpring" style="width:10px"/>
<titledbutton id="ok"
class="dialog push"
value="&okButton.label;"
default="true"
align="right"
onclick="doOKButton()"/>
<spring style="width:10px"/>
<spring id="OKSpring" style="width:10px"/>
</box>
<keyset id="keyset">

View File

@ -13,26 +13,26 @@
<box id="okCancelButtons" align="horizontal" style="margin-top: 0.5em">
<spring flex="100%"/>
<!-- centering offset for two 10px springs that are not hidden -->
<spring style="width:20px"/>
<spring id="OKSpring" style="width:20px"/>
<titledbutton id="ok"
class="dialog push"
value="&okButton.label;"
default="true"
align="right"
onclick="doOKButton()"/>
<spring style="width:10px"/>
<spring id="Button2Spring" style="width:10px"/>
<titledbutton id="Button2"
class="dialog push"
value="&cancelButton.label;"
style="display:none;"
onclick="doButton2()"/>
<spring style="width:10px"/>
<spring id="Button3Spring" style="width:10px"/>
<titledbutton id="Button3"
class="dialog push"
value="&cancelButton.label;"
style="display:none;"
onclick="doButton3()"/>
<spring style="width:10px"/>
<spring id="CancelSpring" style="width:10px"/>
<titledbutton id="cancel"
class="dialog push"
value="&cancelButton.label;"

View File

@ -13,26 +13,26 @@
<box id="okCancelButtons" align="horizontal" style="margin-top: 0.5em">
<spring flex="100%"/>
<!-- centering offset for two 10px springs that are not hidden -->
<spring style="width:20px"/>
<spring id="OKSpring" style="width:20px"/>
<titledbutton id="ok"
class="dialog push"
value="&okButton.label;"
default="true"
align="right"
onclick="doOKButton()"/>
<spring style="width:10px"/>
<spring id="Button2Spring" style="width:10px"/>
<titledbutton id="Button2"
class="dialog push"
value="&cancelButton.label;"
style="display:none;"
onclick="doButton2()"/>
<spring style="width:10px"/>
<spring id="Button3Spring" style="width:10px"/>
<titledbutton id="Button3"
class="dialog push"
value="&cancelButton.label;"
style="display:none;"
onclick="doButton3()"/>
<spring style="width:10px"/>
<spring id="CancelSpring" style="width:10px"/>
<titledbutton id="cancel"
class="dialog push"
value="&cancelButton.label;"

View File

@ -9,14 +9,14 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Wizard Buttons -->
<box id="wizardButtons" align="horizontal" style="margin-top: 0.5em">
<box id="wizardButtons" align="horizontal">
<spring flex="100%"/>
<titledbutton id="wiz.cancel.button" value="&cancelButton.label;" onclick="wizardManager.onCancel()" align="left" style=" margin-top: 1em;"/>
<titledbutton class="dialog push" id="wiz.cancel.button" value="&cancelButton.label;" onclick="wizardManager.onCancel()" />
<spring flex="20%"/>
<titledbutton id="wiz.back.button" value="&backButton.label;" onclick="wizardManager.onBack()" align="left" style="margin-top: 1em;"/>
<titledbutton id="wiz.next.button" value="&nextButton.label;" onclick="wizardManager.onNext()" align="right" style="margin-top: 1em;"/>
<titledbutton class="dialog push" id="wiz.back.button" value="&backButton.label;" onclick="wizardManager.onBack()" align="left" />
<titledbutton class="dialog push" id="wiz.next.button" value="&nextButton.label;" onclick="wizardManager.onNext()" align="right" />
<spring flex="5%"/>
<titledbutton id="wiz.finish.button" value="&finishButton.label;" onclick="wizardManager.onFinish()" align="right" style="margin-top: 1em;"/>
<titledbutton class="dialog push" id="wiz.finish.button" value="&finishButton.label;" onclick="wizardManager.onFinish()" />
<spring flex="5%"/>
</box>

View File

@ -70,6 +70,10 @@ gray-bottomright.gif
gray-topright.gif
otherbutton28-bg-hover.gif
otherbutton28-bg-active.gif
navbar-bg.gif
navbar-endcap.gif
navbar-bg-begincap.gif
n-box-navbar.gif
n-box.gif
toolbar-begincap.gif
toolbar-dropdown.gif

View File

@ -96,6 +96,10 @@ EXPORT_RESOURCE_CONTENT = \
$(srcdir)/toolbar-begincap.gif \
$(srcdir)/toolbar-endcap.gif \
$(srcdir)/toolbar-dropdown.gif \
$(srcdir)/navbar-bg.gif \
$(srcdir)/navbar-endcap.gif \
$(srcdir)/navbar-bg-begincap.gif \
$(srcdir)/n-box-navbar.gif \
$(srcdir)/n-box.gif \
$(srcdir)/search.gif \
$(srcdir)/animthrob.gif \

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 276 B

View File

@ -129,6 +129,39 @@ toolbar.standard {
min-height: 46px;
}
/**
* Navigation Toolbar
*/
toolbar.decorated {
background-image: url("chrome://global/skin/navbar-bg.gif");
background-repeat: repeat-x;
background-position: 0% 0%;
background-color: #CCCCCC;
padding: 0px;
padding-bottom: 4px;
}
toolbar.decorated > #toolbar_throbber_box {
background-color: #CCCCCC;
min-width: 68px;
max-width: 68px;
background-image: url("chrome://global/skin/n-box-navbar.gif");
background-repeat: no-repeat;
background-position: 100% 0%;
}
toolbar.decorated > #toolbar_throbber_box > titledbutton#Throbber
{
margin-top: 0px;
margin-left: 9px;
}
toolbar.decorated > #toolbar_throbber_box > titledbutton#Throbber:active {
margin-top: 1px;
margin-left: 10px;
}
/**
* round buttons used in 'standard toolbar'
*/
@ -328,6 +361,20 @@ titledbutton#Throbber[busy="true"] {
list-style-image:url("chrome://global/skin/animthrob.gif");
}
/* icons titledbuttons */
titledbutton.message-icon {
list-style-image: url("chrome://global/skin/message-icon.gif");
}
titledbutton.alert-icon {
list-style-image: url("chrome://global/skin/alert-icon.gif");
}
titledbutton.error-icon {
list-style-image: url("chrome://global/skin/error-icon.gif");
}
titledbutton.question-icon {
list-style-image: url("chrome://global/skin/question-icon.gif");
}
toolbar {
background-color: #CCCCCC;
@ -979,7 +1026,7 @@ treecell.image > titledbutton:active {
}
.tree-icon {
width: 100%;
width: 100%;
}
.tree-button {
@ -1199,6 +1246,7 @@ html|legend {
margin-top: 0px;
margin-left: 4px;
margin-right: 3px;
cursor: default;
}
html|label {
@ -1304,5 +1352,7 @@ html|input[type=checkbox]:focus {
border:1px dotted rgb(153, 153, 153);
}
html|div, html|td {
cursor: default;
}

View File

@ -99,6 +99,10 @@ install::
$(MAKE_INSTALL) toolbar-begincap.gif $(DISTBROWSER)
$(MAKE_INSTALL) toolbar-dropdown.gif $(DISTBROWSER)
$(MAKE_INSTALL) toolbar-endcap.gif $(DISTBROWSER)
$(MAKE_INSTALL) navbar-bg.gif $(DISTBROWSER)
$(MAKE_INSTALL) navbar-endcap.gif $(DISTBROWSER)
$(MAKE_INSTALL) navbar-bg-begincap.gif $(DISTBROWSER)
$(MAKE_INSTALL) n-box-navbar.gif $(DISTBROWSER)
$(MAKE_INSTALL) n-box.gif $(DISTBROWSER)
$(MAKE_INSTALL) search.gif $(DISTBROWSER)
$(MAKE_INSTALL) animthrob.gif $(DISTBROWSER)

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

View File

@ -1,13 +1,16 @@
titledbutton#back {
list-style-image : url(chrome://global/skin/scroll-left.gif);
titledbutton[id="wiz.back.button"] {
list-style-image : url("chrome://global/skin/scroll-left.gif");
}
titledbutton#back[disabled] {
list-style-image : url(chrome://global/skin/scroll-left-disabled.gif);
titledbutton[id="wiz.back.button"][disabled] {
list-style-image : url("chrome://global/skin/scroll-left-disabled.gif");
}
titledbutton#next {
list-style-image : url(chrome://global/skin/scroll-right.gif);
titledbutton[id="wiz.next.button"] {
list-style-image : url("chrome://global/skin/scroll-right.gif");
}
titledbutton#next[disabled] {
list-style-image : url(chrome://global/skin/scroll-right-disabled.gif);
titledbutton[id="wiz.next.button"][disabled] {
list-style-image : url("chrome://global/skin/scroll-right-disabled.gif");
}
box#wizardButtons {
margin-top : 3px;
}