create bindings for smaller toolbar menubuttons, for advanced print functionality.

This commit is contained in:
ben%netscape.com 2000-05-28 06:06:20 +00:00
parent b4ce057d02
commit 37c9d02119
7 changed files with 64 additions and 8 deletions

View File

@ -16,6 +16,11 @@ menuitem[menuactive="true"][disabled="true"]
color : graytext;
}
menuitem[default="true"]
{
font-weight : bold;
}
/* XXX menupopups have to have a color explicitly specified. this is a bug */
menupopup, popup
{

View File

@ -154,7 +154,7 @@
.button-toolbar-2[disabled="true"]:hover:active
{
background-image : url("chrome://global/skin/button28-bg-disabled.gif");
margin : 3px 7px 1px 1px;
margin : 4px 7px 1px 1px;
border : none;
}

View File

@ -66,6 +66,17 @@
list-style-image : inherit;
}
.button-toolbar-2.menubutton-dual-button
{
list-style-image : inherit;
margin : 4px 7px 1px 1px;
}
.button-toolbar-2.menubutton-dual-button > .button-internal-box > .button-text-container
{
padding-top : 5px;
}
.menubutton-dual-dropmarker
{
background : transparent;
@ -84,5 +95,18 @@
margin-bottom : 1px;
}
.button-toolbar-2 + .menubutton-dual-dropmarker-box
{
margin-left : 28px;
margin-bottom : 1em;
}
/*
<xul:box class="button-internal-box" orient="vertical" autostretch="never" flex="1">
<xul:image class="button-icon" inherits="src"/>
<xul:box orient="vertical" class="button-text-container" autostretch="never" flex="1">
<xul:text class="button-text" inherits="value,accesskey,crop"/>
</xul:box>
</xul:box>

View File

@ -17,4 +17,16 @@
</content>
</binding>
<binding id="menubutton-dual-standard">
<content excludes="observes,template,menupopup">
<xul:stack>
<xul:button class="menubutton-dual-button button-toolbar-2 top" allowevents="true"
inherits="buttontooltiptext:tooltiptext,buttonaction:oncommand,src,value,crop,accesskey,disabled"/>
<xul:box class="menubutton-dual-dropmarker-box" autostretch="never" valign="bottom" flex="1">
<xul:image class="menubutton-dual-dropmarker" inherits="disabled"/>
</xul:box>
</xul:stack>
</content>
</binding>
</bindings>

View File

@ -166,9 +166,15 @@ button.edit-mode[selected="1"]:hover:active {
#previewButton {
list-style-image:url("chrome://editor/skin/images/preview.gif");
}
#printButton {
list-style-image:url("chrome://editor/skin/images/print.gif");
}
#printButton
{
behavior : url("chrome://communicator/skin/menubuttonBindings.xml#menubutton-dual-standard");
list-style-image : url("chrome://editor/skin/images/print.gif");
margin-top : 0px;
margin-left : 0px !important;
}
#findButton {
list-style-image:url("chrome://editor/skin/images/find.gif");
}

View File

@ -15,6 +15,11 @@ menu, menuitem
vertical-align : middle;
}
menuitem[default="true"]
{
font-weight : bold;
}
menu[disabled="true"], menuitem[disabled="true"],
menu[menuactive="true"][disabled="true"],
menuitem[menuactive="true"][disabled="true"]
@ -119,6 +124,7 @@ popup > menuitem[menuactive="true"]
.menu-text
{
padding-left : 15px;
font-weight : inherit;
}
.menu-accel

View File

@ -98,9 +98,12 @@ iframe {
list-style-image:url("chrome://messenger/skin/trash.gif");
}
#button-print {
list-style-image:url("chrome://global/skin/print.gif");
}
#button-print
{
behavior : url("chrome://communicator/skin/menubuttonBindings.xml#menubutton-dual-standard");
list-style-image : url("chrome://global/skin/print.gif");
margin : 0px;
}
#button-stop {
list-style-image:url("chrome://global/skin/stop.gif");