Issue #638 - Part 8: Add overlay sound icon for pinned tabs

- This also moves some styles to tabbrowser.css
This commit is contained in:
FranklinDM 2018-11-17 10:55:10 +08:00 • committed by Roy Tam
commit b0a98ca25b
5 changed files with 163 additions and 17 deletions

View file

@ -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;
}

View file

@ -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"