summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2018-11-17 12:09:14 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2018-11-17 12:09:14 +0800
commitfe4c12e2d64627930e4a1581e726d36539b4847c (patch)
tree2f033fe826b0747785fd7a23ef218821e40fdd0d /application
parenta6b250b47730cc4751cfc5ca9e96a4b74e4d6572 (diff)
downloadUXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.gz
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.lz
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.xz
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.zip
Issue #638 - Part 9: Add sound icon to all tabs menu
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/base/content/browser-tabPreviews.js7
-rw-r--r--application/palemoon/base/content/browser-tabPreviews.xml5
2 files changed, 11 insertions, 1 deletions
diff --git a/application/palemoon/base/content/browser-tabPreviews.js b/application/palemoon/base/content/browser-tabPreviews.js
index eaae78ba8..e0755b81d 100644
--- a/application/palemoon/base/content/browser-tabPreviews.js
+++ b/application/palemoon/base/content/browser-tabPreviews.js
@@ -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) {
diff --git a/application/palemoon/base/content/browser-tabPreviews.xml b/application/palemoon/base/content/browser-tabPreviews.xml
index e957649e7..5b9c58226 100644
--- a/application/palemoon/base/content/browser-tabPreviews.xml
+++ b/application/palemoon/base/content/browser-tabPreviews.xml
@@ -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"/>