mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 14:57:30 +09:00
Issue #638 - Part 4: Add tab sound icon to tab drop-down list
This commit is contained in:
parent
208e5e8705
commit
8714e0d4f7
4 changed files with 27 additions and 0 deletions
|
|
@ -5111,6 +5111,24 @@
|
|||
aMenuitem.setAttribute("selected", "true");
|
||||
else
|
||||
aMenuitem.removeAttribute("selected");
|
||||
|
||||
function addEndImage() {
|
||||
let endImage = document.createElement("image");
|
||||
endImage.setAttribute("class", "alltabs-endimage");
|
||||
let endImageContainer = document.createElement("hbox");
|
||||
endImageContainer.setAttribute("align", "center");
|
||||
endImageContainer.setAttribute("pack", "center");
|
||||
endImageContainer.appendChild(endImage);
|
||||
aMenuitem.appendChild(endImageContainer);
|
||||
return endImage;
|
||||
}
|
||||
|
||||
if (aMenuitem.firstChild)
|
||||
aMenuitem.firstChild.remove();
|
||||
if (aTab.hasAttribute("muted"))
|
||||
addEndImage().setAttribute("muted", "true");
|
||||
else if (aTab.hasAttribute("soundplaying"))
|
||||
addEndImage().setAttribute("soundplaying", "true");
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue