summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/downloads/content/indicatorOverlay.xul
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-02 03:35:06 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-02 03:35:06 -0500
commit49ee0794b5d912db1f95dce6eb52d781dc210db5 (patch)
tree6efefe6a09feb09d965932b24e10436b9ac8189c /application/palemoon/components/downloads/content/indicatorOverlay.xul
parente72ef92b5bdc43cd2584198e2e54e951b70299e8 (diff)
downloadUXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar
UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.gz
UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.lz
UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.xz
UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.zip
Add Pale Moon
Diffstat (limited to 'application/palemoon/components/downloads/content/indicatorOverlay.xul')
-rw-r--r--application/palemoon/components/downloads/content/indicatorOverlay.xul60
1 files changed, 60 insertions, 0 deletions
diff --git a/application/palemoon/components/downloads/content/indicatorOverlay.xul b/application/palemoon/components/downloads/content/indicatorOverlay.xul
new file mode 100644
index 000000000..efb6cab75
--- /dev/null
+++ b/application/palemoon/components/downloads/content/indicatorOverlay.xul
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- -->
+<!-- vim: set ts=2 et sw=2 tw=80: -->
+
+<!-- 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/. -->
+
+<?xml-stylesheet href="chrome://browser/content/downloads/downloads.css"?>
+<?xml-stylesheet href="chrome://browser/skin/downloads/downloads.css"?>
+
+<!DOCTYPE overlay [
+ <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
+ %browserDTD;
+ <!ENTITY % downloadsDTD SYSTEM "chrome://browser/locale/downloads/downloads.dtd" >
+ %downloadsDTD;
+]>
+
+<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ id="indicatorOverlay">
+
+ <popupset>
+ <!-- The downloads indicator is placed in its final toolbar location
+ programmatically, and can be shown temporarily even when its
+ placeholder is removed from the toolbars. Its initial location within
+ the document must not be a toolbar or the toolbar palette, otherwise the
+ toolbar handling code could remove it from the document. -->
+ <toolbarbutton id="downloads-indicator"
+ class="toolbarbutton-1 chromeclass-toolbar-additional"
+ tooltiptext="&downloads.tooltip;"
+ collapsed="true"
+ oncommand="DownloadsIndicatorView.onCommand(event);"
+ ondrop="DownloadsIndicatorView.onDrop(event);"
+ ondragover="DownloadsIndicatorView.onDragOver(event);"
+ ondragenter="DownloadsIndicatorView.onDragOver(event);"
+ ondragleave="DownloadsIndicatorView.onDragLeave(event);"
+ skipintoolbarset="true">
+ <!-- The panel's anchor area is smaller than the outer button, but must
+ always be visible and must not move or resize when the indicator
+ state changes, otherwise the panel could change its position or lose
+ its arrow unexpectedly. -->
+ <stack id="downloads-indicator-anchor"
+ class="toolbarbutton-icon">
+ <vbox id="downloads-indicator-progress-area"
+ pack="center">
+ <description id="downloads-indicator-counter"/>
+ <progressmeter id="downloads-indicator-progress"
+ class="plain"
+ min="0"
+ max="100"/>
+ </vbox>
+ <vbox id="downloads-indicator-icon"/>
+ <vbox id="downloads-indicator-notification"/>
+ </stack>
+ <label class="toolbarbutton-text" crop="right" flex="1"
+ value="&downloads.label;"/>
+ </toolbarbutton>
+ </popupset>
+</overlay>