summaryrefslogtreecommitdiff
path: root/application/palemoon/base/content
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2018-11-17 10:55:10 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2018-11-17 10:55:10 +0800
commita6b250b47730cc4751cfc5ca9e96a4b74e4d6572 (patch)
treebb7eec5d3d6f60f6b3146d068887f7edd81bc102 /application/palemoon/base/content
parent66cc7d91a44fd6789b80cd61ee7b84c63d402122 (diff)
downloaduxp-a6b250b47730cc4751cfc5ca9e96a4b74e4d6572.tar.gz
Issue #638 - Part 8: Add overlay sound icon for pinned tabs
- This also moves some styles to tabbrowser.css
Diffstat (limited to 'application/palemoon/base/content')
-rw-r--r--application/palemoon/base/content/tabbrowser.css11
-rw-r--r--application/palemoon/base/content/tabbrowser.xml4
2 files changed, 14 insertions, 1 deletions
diff --git a/application/palemoon/base/content/tabbrowser.css b/application/palemoon/base/content/tabbrowser.css
index 94d6dbb2ef..43536b27af 100644
--- a/application/palemoon/base/content/tabbrowser.css
+++ b/application/palemoon/base/content/tabbrowser.css
@@ -45,10 +45,19 @@ tabpanels {
}
.tab-throbber:not([busy]),
-.tab-throbber[busy] + .tab-icon-image {
+.tab-throbber[busy] + .tab-icon-image,
+.tab-icon-sound:not([soundplaying]):not([muted]):not([blocked]),
+.tab-icon-sound[pinned],
+.tab-icon-overlay {
display: none;
}
+.tab-icon-overlay[soundplaying][pinned],
+.tab-icon-overlay[muted][pinned],
+.tab-icon-overlay[blocked][pinned] {
+ display: -moz-box;
+}
+
.closing-tabs-spacer {
pointer-events: none;
}
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml
index aa9c8adc37..62b2028b45 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -4888,6 +4888,10 @@
class="tab-icon-image"
role="presentation"
anonid="tab-icon"/>
+ <xul:image xbl:inherits="busy,soundplaying,soundplaying-scheduledremoval,pinned,muted,blocked,selected"
+ anonid="overlay-icon"
+ class="tab-icon-overlay"
+ role="presentation"/>
<xul:label flex="1"
xbl:inherits="value=label,crop,accesskey,fadein,pinned,selected"
class="tab-text tab-label"