Issue #638 - Part 9: Add sound icon to all tabs menu

This commit is contained in:
FranklinDM 2018-11-17 12:09:14 +08:00 • committed by Roy Tam
commit 97c36203a5
2 changed files with 11 additions and 1 deletions

View file

@ -940,6 +940,13 @@ var allTabs = {
aPreview.setAttribute("image", aPreview._tab.image);
else
aPreview.removeAttribute("image");
aPreview.removeAttribute("soundplaying");
aPreview.removeAttribute("muted");
if (aPreview._tab.hasAttribute("muted"))
aPreview.setAttribute("muted", "true");
else if (aPreview._tab.hasAttribute("soundplaying"))
aPreview.setAttribute("soundplaying", "true");
var thumbnail = tabPreviews.get(aPreview._tab);
if (aPreview.firstChild) {

View file

@ -42,7 +42,10 @@
<xul:hbox class="tabPreview-canvas" xbl:inherits="style=canvasstyle">
<children/>
</xul:hbox>
<xul:label flex="1" xbl:inherits="value=label,crop" class="allTabs-preview-label plain"/>
<xul:hbox align="center">
<xul:image xbl:inherits="soundplaying,muted" class="alltabs-endimage"/>
<xul:label flex="1" xbl:inherits="value=label,crop" class="allTabs-preview-label plain"/>
</xul:hbox>
</xul:vbox>
<xul:hbox class="allTabs-favicon-container">
<xul:image class="allTabs-favicon" xbl:inherits="src=image"/>