diff --git a/browserAction/browserAction.css b/browserAction/browserAction.css
index 268c8c9..cd617e7 100644
--- a/browserAction/browserAction.css
+++ b/browserAction/browserAction.css
@@ -17,6 +17,7 @@ div {
height: auto;
z-index: 1;
position: relative;
+ white-space: nowrap;
}
.action + .action {
diff --git a/icons/browserAction-notPrinted.svg b/icons/browserAction-notPrinted.svg
new file mode 100644
index 0000000..348afa8
--- /dev/null
+++ b/icons/browserAction-notPrinted.svg
@@ -0,0 +1,128 @@
+
+
+
+
diff --git a/icons/browserAction-printed.svg b/icons/browserAction-printed.svg
new file mode 100644
index 0000000..eaa7e80
--- /dev/null
+++ b/icons/browserAction-printed.svg
@@ -0,0 +1,128 @@
+
+
+
+
diff --git a/lib/main.js b/lib/main.js
index 69f9ce1..a8abb88 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -67,11 +67,25 @@
!lists.get("ignore").match(url)
){
browser.pageAction.show(port.sender.tab.id);
+ browser.browserAction.setIcon({
+ tabId: port.sender.tab.id,
+ path: {
+ "19": "icons/browserAction-printed.svg",
+ "38": "icons/browserAction-printed.svg"
+ }
+ });
}
}
if (data.hasOwnProperty("canvasBlocker-clear-page-action")){
notice("Hide page action for tab", port.sender.tab.id);
browser.pageAction.hide(port.sender.tab.id);
+ browser.browserAction.setIcon({
+ tabId: port.sender.tab.id,
+ path: {
+ "19": "icons/browserAction-notPrinted.svg",
+ "38": "icons/browserAction-notPrinted.svg"
+ }
+ });
}
verbose("got data", data, "from port", port);
});
diff --git a/manifest.json b/manifest.json
index 135f6d9..3db4887 100644
--- a/manifest.json
+++ b/manifest.json
@@ -56,8 +56,8 @@
"browser_action": {
"browser_style": true,
"default_icon": {
- "19": "icons/icon.svg",
- "38": "icons/icon.svg"
+ "19": "icons/browserAction-notPrinted.svg",
+ "38": "icons/browserAction-notPrinted.svg"
},
"default_title": "CanvasBlocker",
"default_popup": "browserAction/browserAction.html"