mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 23:37:31 +09:00
Issue #638 - Part 9: Add sound icon to all tabs menu
This commit is contained in:
parent
b0a98ca25b
commit
97c36203a5
2 changed files with 11 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue