browser/components/downloads/content/indicatorOverlay.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/components/downloads/content/indicatorOverlay.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- -->
     1.6 +<!-- vim: set ts=2 et sw=2 tw=80: -->
     1.7 +
     1.8 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.9 +   - License, v. 2.0. If a copy of the MPL was not distributed with this file,
    1.10 +   - You can obtain one at http://mozilla.org/MPL/2.0/. -->
    1.11 +
    1.12 +<!DOCTYPE overlay [
    1.13 +  <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
    1.14 +  %browserDTD;
    1.15 +]>
    1.16 +
    1.17 +<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    1.18 +         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.19 +         id="indicatorOverlay">
    1.20 +
    1.21 +  <!-- We dynamically add the stack with the progress meter and notification icon,
    1.22 +       originally loaded lazily because of performance reasons, to the existing
    1.23 +       downloads-button. -->
    1.24 +  <toolbarbutton id="downloads-button" indicator="true">
    1.25 +    <!-- The panel's anchor area is smaller than the outer button, but must
    1.26 +         always be visible and must not move or resize when the indicator
    1.27 +         state changes, otherwise the panel could change its position or lose
    1.28 +         its arrow unexpectedly. -->
    1.29 +    <stack id="downloads-indicator-anchor" class="toolbarbutton-icon">
    1.30 +      <vbox id="downloads-indicator-progress-area" pack="center">
    1.31 +        <description id="downloads-indicator-counter"/>
    1.32 +        <progressmeter id="downloads-indicator-progress" class="plain"
    1.33 +                       min="0" max="100"/>
    1.34 +      </vbox>
    1.35 +      <vbox id="downloads-indicator-icon"/>
    1.36 +    </stack>
    1.37 +  </toolbarbutton>
    1.38 +</overlay>

mercurial