summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/tabbrowser.xml
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2018-11-16 22:40:59 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2018-11-16 22:40:59 +0800
commit719234847ecbab2fe8b4b4c2f153fa0c12bffbc6 (patch)
tree80a9f8bab73229f46d067fcb41a765dd0a4371b7 /application/palemoon/base/content/tabbrowser.xml
parent15afe680798ed70ded4e02621bb0c6229d5e5fb5 (diff)
downloadUXP-719234847ecbab2fe8b4b4c2f153fa0c12bffbc6.tar
UXP-719234847ecbab2fe8b4b4c2f153fa0c12bffbc6.tar.gz
UXP-719234847ecbab2fe8b4b4c2f153fa0c12bffbc6.tar.lz
UXP-719234847ecbab2fe8b4b4c2f153fa0c12bffbc6.tar.xz
UXP-719234847ecbab2fe8b4b4c2f153fa0c12bffbc6.zip
Issue #638 - Part 4: Add tab sound icon to tab drop-down list
Diffstat (limited to 'application/palemoon/base/content/tabbrowser.xml')
-rw-r--r--application/palemoon/base/content/tabbrowser.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml
index d73f87bd6..073a12f16 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -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>