Bug 477827 - Use inset box shadows instead of border images for the toolbar buttons in the Add-ons Manager, Page Info dialog and Error Console. r=dao, r=Enn, r=dtownsend

This commit is contained in:
Markus Stange 2009-04-24 12:01:21 +02:00
parent 892c506b69
commit 234627d86b
35 changed files with 117 additions and 219 deletions

View File

@ -114,23 +114,21 @@
<menuitem id="menu_copy" label="&copy.label;" command="cmd_copy" accesskey="&copy.accesskey;"/> <menuitem id="menu_copy" label="&copy.label;" command="cmd_copy" accesskey="&copy.accesskey;"/>
</menupopup> </menupopup>
<windowdragbox orient="vertical"> <windowdragbox id="topBar" class="viewGroupWrapper">
<stack id="topStackBar"> <radiogroup id="viewGroup" class="chromeclass-toolbar" orient="horizontal"
<radiogroup id="viewGroup" class="viewSelector chromeclass-toolbar" orient="horizontal" chromedir="&locale.dir;">
chromedir="&locale.dir;"> <radio id="generalTab" label="&generalTab;" accesskey="&generalTab.accesskey;"
<radio id="generalTab" label="&generalTab;" accesskey="&generalTab.accesskey;" oncommand="showTab('general');"/>
oncommand="showTab('general');"/> <radio id="mediaTab" label="&mediaTab;" accesskey="&mediaTab.accesskey;"
<radio id="mediaTab" label="&mediaTab;" accesskey="&mediaTab.accesskey;" oncommand="showTab('media'); ensureSelection(gImageView)" hidden="true"/>
oncommand="showTab('media'); ensureSelection(gImageView)" hidden="true"/> <radio id="feedTab" label="&feedTab;" accesskey="&feedTab.accesskey;"
<radio id="feedTab" label="&feedTab;" accesskey="&feedTab.accesskey;" oncommand="showTab('feed');" hidden="true"/>
oncommand="showTab('feed');" hidden="true"/> <radio id="permTab" label="&permTab;" accesskey="&permTab.accesskey;"
<radio id="permTab" label="&permTab;" accesskey="&permTab.accesskey;" oncommand="showTab('perm');"/>
oncommand="showTab('perm');"/> <radio id="securityTab" label="&securityTab;" accesskey="&securityTab.accesskey;"
<radio id="securityTab" label="&securityTab;" accesskey="&securityTab.accesskey;" oncommand="showTab('security');"/>
oncommand="showTab('security');"/> <!-- Others added by overlay -->
<!-- Others added by overlay --> </radiogroup>
</radiogroup>
</stack>
</windowdragbox> </windowdragbox>
<deck id="mainDeck" flex="1"> <deck id="mainDeck" flex="1">

View File

@ -58,10 +58,9 @@
color: HighlightText; color: HighlightText;
} }
.viewSelector { #topBar {
-moz-appearance: listbox; -moz-appearance: listbox;
margin: 8px 8px 0 8px; margin: 8px 8px 0;
padding: 0;
} }
#generalTab { #generalTab {

View File

@ -48,9 +48,8 @@
padding: 5px 3px 1px 3px; padding: 5px 3px 1px 3px;
} }
.viewSelector { #topBar {
border-bottom: 2px groove ThreeDFace; border-bottom: 2px groove ThreeDFace;
margin: 0;
-moz-padding-start: 10px; -moz-padding-start: 10px;
background-color: -moz-Field; background-color: -moz-Field;
color: -moz-FieldText; color: -moz-FieldText;

View File

@ -46,7 +46,7 @@ WindowDraggingElement.prototype = {
mouseDownCheck: function(e) { return true; }, mouseDownCheck: function(e) { return true; },
dragTags: ["box", "hbox", "vbox", "spacer", "label", "statusbarpanel", "stack", dragTags: ["box", "hbox", "vbox", "spacer", "label", "statusbarpanel", "stack",
"toolbaritem", "toolbarseparator", "toolbarspring", "toolbarspacer", "toolbaritem", "toolbarseparator", "toolbarspring", "toolbarspacer",
"radiogroup"], "radiogroup", "deck"],
handleEvent: function(aEvent) { handleEvent: function(aEvent) {
switch (aEvent.type) { switch (aEvent.type) {
case "mousedown": case "mousedown":

View File

@ -538,11 +538,7 @@ function getIDFromResourceURI(aURI)
function showProgressBar() { function showProgressBar() {
var progressBox = document.getElementById("progressBox"); var progressBox = document.getElementById("progressBox");
var height = document.defaultView.getComputedStyle(progressBox.parentNode, "") progressBox.parentNode.selectedPanel = progressBox;
.getPropertyValue("height");
progressBox.parentNode.style.height = height;
document.getElementById("viewGroup").hidden = true;
progressBox.hidden = false;
} }
function flushDataSource() function flushDataSource()
@ -1447,9 +1443,8 @@ UpdateCheckListener.prototype = {
onUpdateEnded: function() { onUpdateEnded: function() {
if (!document) if (!document)
return; return;
document.getElementById("progressBox").hidden = true; var viewGroup = document.getElementById("viewGroup").parentNode;
var viewGroup = document.getElementById("viewGroup"); viewGroup.parentNode.selectedPanel = viewGroup;
viewGroup.hidden = false;
gExtensionsView.removeAttribute("update-operation"); gExtensionsView.removeAttribute("update-operation");
gExtensionsViewController.onCommandUpdate(); gExtensionsViewController.onCommandUpdate();
updateOptionalViews(); updateOptionalViews();

View File

@ -161,20 +161,21 @@
<popup id="addonContextMenu" onpopupshowing="return buildContextMenu(event);"/> <popup id="addonContextMenu" onpopupshowing="return buildContextMenu(event);"/>
<windowdragbox orient="vertical"> <windowdragbox id="topBar" class="chromeclass-toolbar">
<stack id="topStackBar"> <deck flex="1">
<radiogroup id="viewGroup" xhtml:role="listbox" persist="last-selected" <hbox class="viewGroupWrapper">
class="viewSelector chromeclass-toolbar" orient="horizontal" <radiogroup id="viewGroup" xhtml:role="listbox" persist="last-selected"
chromedir="&locale.dir;"> orient="horizontal" chromedir="&locale.dir;">
<radio id="search-view" label="&search.label;" oncommand="showView('search');" persist="last-selected"/> <radio id="search-view" label="&search.label;" oncommand="showView('search');" persist="last-selected"/>
<radio id="extensions-view" label="&extensions.label;" oncommand="showView('extensions');" persist="last-selected"/> <radio id="extensions-view" label="&extensions.label;" oncommand="showView('extensions');" persist="last-selected"/>
<radio id="themes-view" label="&themes.label;" oncommand="showView('themes');" persist="last-selected"/> <radio id="themes-view" label="&themes.label;" oncommand="showView('themes');" persist="last-selected"/>
<radio id="locales-view" label="&locales.label;" oncommand="showView('locales');" persist="last-selected"/> <radio id="locales-view" label="&locales.label;" oncommand="showView('locales');" persist="last-selected"/>
<radio id="plugins-view" label="&plugins.label;" oncommand="showView('plugins');" persist="last-selected"/> <radio id="plugins-view" label="&plugins.label;" oncommand="showView('plugins');" persist="last-selected"/>
<radio id="updates-view" label="&update.label;" oncommand="showView('updates');"/> <radio id="updates-view" label="&update.label;" oncommand="showView('updates');"/>
<radio id="installs-view" label="&install.label;" oncommand="showView('installs');" hidden="true"/> <radio id="installs-view" label="&install.label;" oncommand="showView('installs');" hidden="true"/>
</radiogroup> </radiogroup>
<vbox id="progressBox" hidden="true" class="viewSelector" flex="1"> </hbox>
<vbox id="progressBox" flex="1">
<spacer flex="1"/> <spacer flex="1"/>
<hbox> <hbox>
<image class="addonThrobber"/> <image class="addonThrobber"/>
@ -183,7 +184,7 @@
<progressmeter id="addonsProgress" class="extension-item-progress" flex="1"/> <progressmeter id="addonsProgress" class="extension-item-progress" flex="1"/>
<spacer flex="1"/> <spacer flex="1"/>
</vbox> </vbox>
</stack> </deck>
</windowdragbox> </windowdragbox>
<notificationbox id="addonsMsg" flex="1"> <notificationbox id="addonsMsg" flex="1">
<vbox id="extensionsBox" flex="1"> <vbox id="extensionsBox" flex="1">

View File

@ -355,11 +355,10 @@ vbox[typeName="status"][type="header-recommended"] {
-moz-box-align: center; -moz-box-align: center;
} }
/* View buttons */ /* View buttons resp. Progress box */
.viewSelector { #topBar {
-moz-appearance: listbox; -moz-appearance: listbox;
margin: 8px 8px 0 8px; margin: 8px 8px 0;
padding: 0;
} }
#viewGroup radio { #viewGroup radio {

View File

@ -188,7 +188,6 @@ toolbarseparator {
/* Toolbar icons */ /* Toolbar icons */
#ToolbarMode { #ToolbarMode {
padding: 4px 0 8px;
-moz-box-pack: center; -moz-box-pack: center;
} }
@ -196,29 +195,27 @@ toolbarseparator {
display: none; display: none;
} }
#viewGroup {
-moz-appearance: none;
padding: 0;
}
#Console\:clear { #Console\:clear {
-moz-box-orient: vertical; -moz-box-orient: vertical;
-moz-box-align: center; -moz-box-align: center;
font: menu; font: menu;
text-shadow: rgba(255, 255, 255, 0.4) 0 1px; text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
margin: 0; margin: 4px 0 9px;
padding: 3px 0 0; padding: 1px 4px 0;
height: 24px; border: 1px solid rgba(0, 0, 0, 0.6);
border: solid transparent; -moz-border-radius: 3px;
border-width: 0 6px; -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
-moz-border-image: url("chrome://global/skin/toolbar/roundrectbutton.png") 0 6 repeat stretch !important; background: url("chrome://global/skin/toolbar/white-transparent-gradient.png") repeat-x #B4B4B4;
} }
#Console\:clear:active:hover { #Console\:clear:active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/roundrectbutton-down.png") 0 6 repeat stretch !important; background: #B5B5B5;
text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
-moz-box-shadow: inset rgba(0, 0, 0, 0.4) 0 -6px 14px, inset rgba(0, 0, 0, 1) 0 1px 4px, rgba(255, 255, 255, 0.4) 0 1px;
} }
:root:not([active]) #Console\:clear { :root:not([active]) #Console\:clear {
color: #7C7C7C !important; /* remove this when we support click-through */ color: #7C7C7C !important; /* remove this when we support click-through */
-moz-border-image: url("chrome://global/skin/toolbar/roundrectbutton-inactive.png") 0 6 repeat stretch !important; border-color: rgba(0, 0, 0, 0.25);
background-color: #CCC;
} }

View File

@ -215,27 +215,6 @@ classic.jar:
+ skin/classic/global/toolbar/Lighten.png (toolbar/Lighten.png) + skin/classic/global/toolbar/Lighten.png (toolbar/Lighten.png)
+ skin/classic/global/toolbar/dropmark-nav.png (toolbar/dropmark-nav.png) + skin/classic/global/toolbar/dropmark-nav.png (toolbar/dropmark-nav.png)
+ skin/classic/global/toolbar/dropmark-nav-small.png (toolbar/dropmark-nav-small.png) + skin/classic/global/toolbar/dropmark-nav-small.png (toolbar/dropmark-nav-small.png)
+ skin/classic/global/toolbar/roundrectbutton.png (toolbar/roundrectbutton.png)
+ skin/classic/global/toolbar/roundrectbutton-down.png (toolbar/roundrectbutton-down.png)
+ skin/classic/global/toolbar/roundrectbutton-inactive.png (toolbar/roundrectbutton-inactive.png)
+ skin/classic/global/toolbar/viewbutton-left.png (toolbar/viewbutton-left.png)
+ skin/classic/global/toolbar/viewbutton-left-down.png (toolbar/viewbutton-left-down.png)
+ skin/classic/global/toolbar/viewbutton-left-inactive.png (toolbar/viewbutton-left-inactive.png)
+ skin/classic/global/toolbar/viewbutton-left-selected.png (toolbar/viewbutton-left-selected.png)
+ skin/classic/global/toolbar/viewbutton-left-selected-down.png (toolbar/viewbutton-left-selected-down.png)
+ skin/classic/global/toolbar/viewbutton-left-selected-inactive.png (toolbar/viewbutton-left-selected-inactive.png)
+ skin/classic/global/toolbar/viewbutton-middle.png (toolbar/viewbutton-middle.png)
+ skin/classic/global/toolbar/viewbutton-middle-down.png (toolbar/viewbutton-middle-down.png)
+ skin/classic/global/toolbar/viewbutton-middle-inactive.png (toolbar/viewbutton-middle-inactive.png)
+ skin/classic/global/toolbar/viewbutton-middle-selected.png (toolbar/viewbutton-middle-selected.png)
+ skin/classic/global/toolbar/viewbutton-middle-selected-down.png (toolbar/viewbutton-middle-selected-down.png)
+ skin/classic/global/toolbar/viewbutton-middle-selected-inactive.png (toolbar/viewbutton-middle-selected-inactive.png)
+ skin/classic/global/toolbar/viewbutton-right.png (toolbar/viewbutton-right.png)
+ skin/classic/global/toolbar/viewbutton-right-down.png (toolbar/viewbutton-right-down.png)
+ skin/classic/global/toolbar/viewbutton-right-inactive.png (toolbar/viewbutton-right-inactive.png)
+ skin/classic/global/toolbar/viewbutton-right-selected.png (toolbar/viewbutton-right-selected.png)
+ skin/classic/global/toolbar/viewbutton-right-selected-down.png (toolbar/viewbutton-right-selected-down.png)
+ skin/classic/global/toolbar/viewbutton-right-selected-inactive.png (toolbar/viewbutton-right-selected-inactive.png)
+ skin/classic/global/toolbar/spring.gif (toolbar/spring.gif) + skin/classic/global/toolbar/spring.gif (toolbar/spring.gif)
+ skin/classic/global/toolbar/toolbar-background.gif (toolbar/toolbar-background.gif) + skin/classic/global/toolbar/toolbar-background.gif (toolbar/toolbar-background.gif)
+ skin/classic/global/toolbar/toolbar-background-inactive.png (toolbar/toolbar-background-inactive.png) + skin/classic/global/toolbar/toolbar-background-inactive.png (toolbar/toolbar-background-inactive.png)
@ -246,6 +225,7 @@ classic.jar:
+ skin/classic/global/toolbar/toolbarbutton-customhover-left.png (toolbar/toolbarbutton-customhover-left.png) + skin/classic/global/toolbar/toolbarbutton-customhover-left.png (toolbar/toolbarbutton-customhover-left.png)
+ skin/classic/global/toolbar/toolbarbutton-customhover-mid.png (toolbar/toolbarbutton-customhover-mid.png) + skin/classic/global/toolbar/toolbarbutton-customhover-mid.png (toolbar/toolbarbutton-customhover-mid.png)
+ skin/classic/global/toolbar/toolbarbutton-customhover-right.png (toolbar/toolbarbutton-customhover-right.png) + skin/classic/global/toolbar/toolbarbutton-customhover-right.png (toolbar/toolbarbutton-customhover-right.png)
+ skin/classic/global/toolbar/white-transparent-gradient.png (toolbar/white-transparent-gradient.png)
+ skin/classic/global/tree/columnpicker.gif (tree/columnpicker.gif) + skin/classic/global/tree/columnpicker.gif (tree/columnpicker.gif)
+ skin/classic/global/tree/folder-dis.png (tree/folder-dis.png) + skin/classic/global/tree/folder-dis.png (tree/folder-dis.png)
+ skin/classic/global/tree/folder.png (tree/folder.png) + skin/classic/global/tree/folder.png (tree/folder.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

View File

@ -34,13 +34,23 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#viewGroup { #topBar {
-moz-appearance: -moz-mac-unified-toolbar; -moz-appearance: -moz-mac-unified-toolbar;
padding: 4px 0 8px; }
margin: 0;
.viewGroupWrapper {
-moz-box-align: center;
-moz-box-pack: center; -moz-box-pack: center;
} }
#viewGroup {
background-color: rgba(0, 0, 0, 0.55);
padding: 1px;
-moz-border-radius: 3px;
-moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
margin: 4px 0 9px;
}
#viewGroup > * { #viewGroup > * {
-moz-box-orient: vertical; -moz-box-orient: vertical;
-moz-box-align: center; -moz-box-align: center;
@ -48,148 +58,61 @@
font: menu; font: menu;
text-shadow: rgba(255, 255, 255, 0.4) 0 1px; text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
margin: 0; margin: 0;
padding: 3px 0 0; padding: 1px 4px 0;
height: 24px; border: none;
background-color: transparent; border-left: 1px solid rgba(0, 0, 0, 0.8);
border: solid transparent; background: url("chrome://global/skin/toolbar/white-transparent-gradient.png") repeat-x #B4B4B4;
border-width: 0 4px 0 5px;
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle.png") 0 4 0 5 repeat stretch;
} }
#viewGroup > :active:hover { #viewGroup > :not([checked=true]):not([selected=true]):active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-down.png") 0 4 0 5 repeat stretch; background: #B5B5B5;
text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
-moz-box-shadow: inset rgba(0, 0, 0, 0.4) 0 -6px 14px, inset #000 0 1px 4px, inset rgba(0, 0, 0, 0.3) 0 1px 4px;
} }
#viewGroup > radio[selected=true], #viewGroup > radio[selected=true],
#viewGroup > toolbarbutton[checked=true] { #viewGroup > toolbarbutton[checked=true] {
color: #FFF !important; color: #FFF !important;
text-shadow: rgba(0, 0, 0, 0.4) 0 1px; text-shadow: rgba(0, 0, 0, 0.4) 0 1px;
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-selected.png") 0 4 0 5 repeat stretch; background: #606060;
-moz-box-shadow: inset black 0 2px 7px;
} }
#viewGroup > radio[selected=true]:active:hover, #viewGroup > radio[selected=true]:active:hover,
#viewGroup > toolbarbutton[checked=true]:active:hover { #viewGroup > toolbarbutton[checked=true]:active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-selected-down.png") 0 4 0 5 repeat stretch; background-color: #505050;
}
:root:not([active]) #viewGroup {
background-color: rgba(0, 0, 0, 0.25);
} }
:root:not([active]) #viewGroup > * { :root:not([active]) #viewGroup > * {
color: #7C7C7C !important; /* remove this when we support click-through */ color: #7C7C7C !important; /* remove this when we support click-through */
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-inactive.png") 0 4 0 5 repeat stretch; border-color: rgba(0, 0, 0, 0.4);
background-color: #CCC;
} }
:root:not([active]) #viewGroup > radio[selected=true], :root:not([active]) #viewGroup > radio[selected=true],
:root:not([active]) #viewGroup > toolbarbutton[checked=true] { :root:not([active]) #viewGroup > toolbarbutton[checked=true] {
color: #C5C5C5 !important; /* remove this when we support click-through */ color: #C5C5C5 !important; /* remove this when we support click-through */
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-selected-inactive.png") 0 4 0 5 repeat stretch; background: #999;
-moz-box-shadow: inset rgba(0, 0, 0, 0.65) 0 2px 7px;
} }
#viewGroup > :first-child, #viewGroup:not([chromedir=rtl]) > :first-child,
#viewGroup > [first-visible], #viewGroup:not([chromedir=rtl]) > [first-visible],
#viewGroup[chromedir=rtl] > :last-child, #viewGroup[chromedir=rtl] > :last-child,
#viewGroup[chromedir=rtl] > [last-visible] { #viewGroup[chromedir=rtl] > [last-visible] {
border-width: 0 4px 0 6px; -moz-border-radius-topleft: 2px;
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left.png") 0 4 0 6 repeat stretch; -moz-border-radius-bottomleft: 2px;
border-left: none !important;
} }
#viewGroup > :first-child:active:hover, #viewGroup:not([chromedir=rtl]) > :last-child,
#viewGroup > [first-visible]:active:hover, #viewGroup:not([chromedir=rtl]) > [last-visible],
#viewGroup[chromedir=rtl] > :last-child:active:hover,
#viewGroup[chromedir=rtl] > [last-visible]:active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-down.png") 0 4 0 6 repeat stretch;
}
#viewGroup > radio:first-child[selected=true],
#viewGroup > radio[first-visible][selected=true],
#viewGroup[chromedir=rtl] > radio:last-child[selected=true],
#viewGroup[chromedir=rtl] > radio[last-visible][selected=true],
#viewGroup > toolbarbutton:first-child[checked=true],
#viewGroup > toolbarbutton[first-visible][checked=true],
#viewGroup[chromedir=rtl] > toolbarbutton:last-child[checked=true],
#viewGroup[chromedir=rtl] > toolbarbutton[last-visible][checked=true] {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-selected.png") 0 4 0 6 repeat stretch;
}
#viewGroup > radio:first-child[selected=true]:active:hover,
#viewGroup > radio[first-visible][selected=true]:active:hover,
#viewGroup[chromedir=rtl] > radio:last-child[selected=true]:active:hover,
#viewGroup[chromedir=rtl] > radio[last-visible][selected=true]:active:hover,
#viewGroup > toolbarbutton:first-child[checked=true]:active:hover,
#viewGroup > toolbarbutton[first-visible][checked=true]:active:hover,
#viewGroup[chromedir=rtl] > toolbarbutton:last-child[checked=true]:active:hover,
#viewGroup[chromedir=rtl] > toolbarbutton[last-visible][checked=true]:active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-selected-down.png") 0 4 0 6 repeat stretch;
}
:root:not([active]) #viewGroup > :first-child,
:root:not([active]) #viewGroup > [first-visible],
:root:not([active]) #viewGroup[chromedir=rtl] > :last-child,
:root:not([active]) #viewGroup[chromedir=rtl] > [last-visible] {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-inactive.png") 0 4 0 6 repeat stretch;
}
:root:not([active]) #viewGroup > radio:first-child[selected=true],
:root:not([active]) #viewGroup > radio[first-visible][selected=true],
:root:not([active]) #viewGroup[chromedir=rtl] > radio:last-child[selected=true],
:root:not([active]) #viewGroup[chromedir=rtl] > radio[last-visible][selected=true],
:root:not([active]) #viewGroup > toolbarbutton:first-child[checked=true],
:root:not([active]) #viewGroup > toolbarbutton[first-visible][checked=true],
:root:not([active]) #viewGroup[chromedir=rtl] > toolbarbutton:last-child[checked=true],
:root:not([active]) #viewGroup[chromedir=rtl] > toolbarbutton[last-visible][checked=true] {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-selected-inactive.png") 0 4 0 6 repeat stretch;
}
#viewGroup > :last-child,
#viewGroup > [last-visible],
#viewGroup[chromedir=rtl] > :first-child, #viewGroup[chromedir=rtl] > :first-child,
#viewGroup[chromedir=rtl] > [first-visible] { #viewGroup[chromedir=rtl] > [first-visible] {
border-width: 0 6px 0 5px; -moz-border-radius-topright: 2px;
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right.png") 0 6 0 5 repeat stretch; -moz-border-radius-bottomright: 2px;
} }
#viewGroup > :last-child:active:hover,
#viewGroup > [last-visible]:active:hover,
#viewGroup[chromedir=rtl] > :first-child:active:hover,
#viewGroup[chromedir=rtl] > [first-visible]:active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-down.png") 0 6 0 5 repeat stretch;
}
#viewGroup > radio:last-child[selected=true],
#viewGroup > radio[last-visible][selected=true],
#viewGroup[chromedir=rtl] > radio:first-child[selected=true],
#viewGroup[chromedir=rtl] > radio[first-visible][selected=true],
#viewGroup > toolbarbutton:last-child[checked=true],
#viewGroup > toolbarbutton[last-visible][checked=true],
#viewGroup[chromedir=rtl] > toolbarbutton:first-child[checked=true],
#viewGroup[chromedir=rtl] > toolbarbutton[first-visible][checked=true] {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-selected.png") 0 6 0 5 repeat stretch;
}
#viewGroup > radio:last-child[selected=true]:active:hover,
#viewGroup > radio[last-visible][selected=true]:active:hover,
#viewGroup[chromedir=rtl] > radio:first-child[selected=true]:active:hover,
#viewGroup[chromedir=rtl] > radio[first-visible][selected=true]:active:hover,
#viewGroup > toolbarbutton:last-child[checked=true]:active:hover,
#viewGroup > toolbarbutton[last-visible][checked=true]:active:hover,
#viewGroup[chromedir=rtl] > toolbarbutton:first-child[checked=true]:active:hover,
#viewGroup[chromedir=rtl] > toolbarbutton[first-visible][checked=true]:active:hover {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-selected-down.png") 0 6 0 5 repeat stretch;
}
:root:not([active]) #viewGroup > :last-child,
:root:not([active]) #viewGroup > [last-visible],
:root:not([active]) #viewGroup[chromedir=rtl] > :first-child,
:root:not([active]) #viewGroup[chromedir=rtl] > [first-visible] {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-inactive.png") 0 6 0 5 repeat stretch;
}
:root:not([active]) #viewGroup > radio:last-child[selected=true],
:root:not([active]) #viewGroup > radio[last-visible][selected=true],
:root:not([active]) #viewGroup[chromedir=rtl] > radio:first-child[selected=true],
:root:not([active]) #viewGroup[chromedir=rtl] > radio[first-visible][selected=true],
:root:not([active]) #viewGroup > toolbarbutton:last-child[checked=true],
:root:not([active]) #viewGroup > toolbarbutton[last-visible][checked=true],
:root:not([active]) #viewGroup[chromedir=rtl] > toolbarbutton:first-child[checked=true],
:root:not([active]) #viewGroup[chromedir=rtl] > toolbarbutton[first-visible][checked=true] {
-moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-selected-inactive.png") 0 6 0 5 repeat stretch;
}

View File

@ -107,21 +107,31 @@ richlistitem[type="download"] button {
-moz-appearance: statusbar; -moz-appearance: statusbar;
} }
#downloadManager:not([active="true"]) #search > * { :root:not([active]) #searchbox {
opacity: 0.7; opacity: 0.7;
} }
#clearListButton { #clearListButton {
-moz-appearance: none; -moz-appearance: none;
border: 1px solid #5F5F5F; min-height: 18px;
-moz-border-radius: 4px;
background: url(chrome://global/skin/icons/white-gray-gradient.gif) #A09E9D repeat-x top center;
min-height: 0;
min-width: 0; min-width: 0;
padding: 2px;
margin: 0 6px; margin: 0 6px;
padding: 0 2px;
text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
border: 1px solid rgba(0, 0, 0, 0.6);
-moz-border-radius: 3px;
-moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
background: url("chrome://global/skin/toolbar/white-transparent-gradient.png") repeat-x #B4B4B4;
} }
#clearListButton:hover:active:not([disabled="true"]) { #clearListButton:hover:active:not([disabled="true"]) {
background: url(chrome://global/skin/icons/white-gray-gradient-active.gif); background: #B5B5B5;
text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
-moz-box-shadow: inset rgba(0, 0, 0, 0.4) 0 -5px 12px, inset rgba(0, 0, 0, 1) 0 1px 3px, rgba(255, 255, 255, 0.4) 0 1px;
}
:root:not([active]) #clearListButton {
color: #7C7C7C !important; /* remove this when we support click-through */
border-color: rgba(0, 0, 0, 0.25);
background-color: #CCC;
} }

View File

@ -354,11 +354,6 @@ vbox[typeName="status"][type="header-recommended"] {
border-bottom: 1px solid #878787; border-bottom: 1px solid #878787;
} }
#progressBox {
padding: 5px 5px 5px 5px;
-moz-appearance: -moz-mac-unified-toolbar;
}
#progressBox > hbox { #progressBox > hbox {
-moz-box-align: center; -moz-box-align: center;
} }

View File

@ -347,15 +347,17 @@ vbox[typeName="status"][type="header-recommended"] {
-moz-box-align: center; -moz-box-align: center;
} }
/* View buttons */ /* View buttons resp. Progress box */
.viewSelector { #topBar {
border-bottom: 2px groove ThreeDFace; border-bottom: 2px groove ThreeDFace;
margin: 0px;
-moz-padding-start: 10px;
background-color: -moz-Field; background-color: -moz-Field;
color: -moz-FieldText; color: -moz-FieldText;
} }
#viewGroup {
-moz-padding-start: 10px;
}
#viewGroup radio { #viewGroup radio {
-moz-appearance: none; -moz-appearance: none;
margin: 0px 1px 0px 1px; margin: 0px 1px 0px 1px;