зеркало из https://github.com/mozilla/pjs.git
Bug 393301 - Add UI for downloads in scanning state. r=gavin.sharp, a=mconnor
This commit is contained in:
Родитель
7757f6a7b8
Коммит
fa1326f739
|
@ -9,6 +9,7 @@
|
|||
|
||||
<!-- 'Parental Controls' label should be capitalized -->
|
||||
<!ENTITY blocked.label "Blocked by Parental Controls">
|
||||
<!ENTITY scanning.label "Scanning for viruses...">
|
||||
|
||||
<!ENTITY downloads.title "Downloads">
|
||||
|
||||
|
|
|
@ -314,4 +314,31 @@
|
|||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="download-scanning" extends="chrome://mozapps/content/downloads/download.xml#download-base">
|
||||
<content>
|
||||
<xul:hbox flex="1">
|
||||
#ifdef SHOW_ICONS
|
||||
<xul:vbox pack="start">
|
||||
<xul:image class="downloadTypeIcon" validate="always"
|
||||
xbl:inherits="src=image"/>
|
||||
</xul:vbox>
|
||||
#endif
|
||||
<xul:vbox pack="start" flex="1">
|
||||
<xul:label xbl:inherits="value=target,tooltiptext=target"
|
||||
crop="center" flex="2" class="name"/>
|
||||
<xul:hbox>
|
||||
<xul:vbox flex="1">
|
||||
<xul:progressmeter mode="undetermined" flex="1" />
|
||||
</xul:vbox>
|
||||
<xul:button class="info mini-button" tooltiptext="&cmd.info.label;"
|
||||
command="cmd_showInfo" ondblclick="event.stopPropagation();"
|
||||
anonid="info"/>
|
||||
</xul:hbox>
|
||||
<xul:label value="&scanning.label;" class="status"/>
|
||||
<xul:spacer flex="1"/>
|
||||
</xul:vbox>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
|
|
@ -27,6 +27,10 @@ richlistitem[type="download"][state="6"] {
|
|||
-moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-blocked');
|
||||
}
|
||||
|
||||
richlistitem[type="download"][state="7"] {
|
||||
-moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-scanning');
|
||||
}
|
||||
|
||||
/* Only focus buttons in the selected item*/
|
||||
richlistitem[type="download"]:not([selected="true"]) button {
|
||||
-moz-user-focus: none;
|
||||
|
|
|
@ -477,7 +477,9 @@ var gContextMenus = [
|
|||
"menuitem_copyLocation"],
|
||||
// DOWNLOAD_BLOCKED
|
||||
["menuitem_retry", "menuitem_remove", "menuseparator_copy_location",
|
||||
"menuitem_copyLocation"]
|
||||
"menuitem_copyLocation"],
|
||||
// DOWNLOAD_SCANNING
|
||||
["menuitem_copyLocation"]
|
||||
];
|
||||
|
||||
function buildContextMenu(aEvent)
|
||||
|
|
Загрузка…
Ссылка в новой задаче