Bug 824265 - Part 2 of 2 - Empty Downloads view should show that there are no downloads in the list. r=mano

This commit is contained in:
Paolo Amadini 2013-01-13 23:36:18 +02:00
parent 6e4250b126
commit af4082bb00
7 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#downloadsListEmptyDescription {
display: none;
}
#downloadsRichListBox:empty + #downloadsListEmptyDescription {
display: -moz-box;
}

View File

@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/content/downloads/contentAreaDownloadsView.css"?>
<?xml-stylesheet href="chrome://browser/skin/downloads/contentAreaDownloadsView.css"?>
<?xul-overlay href="chrome://browser/content/downloads/allDownloadsViewOverlay.xul"?>
@ -34,7 +35,11 @@
#endif
</keyset>
<richlistbox id="downloadsRichListBox"/>
<stack flex="1">
<richlistbox id="downloadsRichListBox"/>
<description id="downloadsListEmptyDescription"
value="&downloadsListEmpty.label;"/>
</stack>
<commandset id="downloadCommands"/>
<menupopup id="downloadsContextMenu"/>
</window>

View File

@ -15,3 +15,4 @@ browser.jar:
content/browser/downloads/allDownloadsViewOverlay.css (content/allDownloadsViewOverlay.css)
* content/browser/downloads/contentAreaDownloadsView.xul (content/contentAreaDownloadsView.xul)
content/browser/downloads/contentAreaDownloadsView.js (content/contentAreaDownloadsView.js)
content/browser/downloads/contentAreaDownloadsView.css (content/contentAreaDownloadsView.css)

View File

@ -79,7 +79,8 @@
<!ENTITY clearDownloadsButton.tooltip "Clears completed, canceled and failed downloads">
<!-- LOCALIZATION NOTE (downloadsListEmpty.label):
This string is shown when there are no items in the Downloads view.
This string is shown when there are no items in the Downloads view, when it
is displayed inside a browser tab.
-->
<!ENTITY downloadsListEmpty.label "There are no downloads.">

View File

@ -4,3 +4,8 @@
@import url("chrome://global/skin/inContentUI.css");
#downloadsListEmptyDescription {
margin: 1em;
text-align: center;
color: GrayText;
}

View File

@ -14,3 +14,9 @@
border: none;
box-shadow: none;
}
#downloadsListEmptyDescription {
margin: 1em;
text-align: center;
color: GrayText;
}

View File

@ -14,3 +14,9 @@
border: none;
box-shadow: none;
}
#downloadsListEmptyDescription {
margin: 1em;
text-align: center;
color: GrayText;
}