diff --git a/16w.png b/16w.png new file mode 100644 index 00000000..359ccf39 Binary files /dev/null and b/16w.png differ diff --git a/32.png b/32.png new file mode 100644 index 00000000..0a756b19 Binary files /dev/null and b/32.png differ diff --git a/32w.png b/32w.png new file mode 100644 index 00000000..7c8e3a25 Binary files /dev/null and b/32w.png differ diff --git a/manifest.json b/manifest.json index 7ac27daa..b41d8701 100644 --- a/manifest.json +++ b/manifest.json @@ -51,6 +51,8 @@ "options_page": "manage.html", "browser_action": { "default_icon": { + "16": "16w.png", + "32": "32w.png", "19": "19w.png", "38": "38w.png" }, diff --git a/messaging.js b/messaging.js index adc5e7fe..9f6fdc67 100644 --- a/messaging.js +++ b/messaging.js @@ -47,7 +47,12 @@ function updateIcon(tab, styles) { var disableAll = "disableAll" in styles ? styles.disableAll : prefs.get("disableAll"); var postfix = styles.length == 0 || disableAll ? "w" : ""; chrome.browserAction.setIcon({ - path: {19: "19" + postfix + ".png", 38: "38" + postfix + ".png"}, + path: { + // Material Design 2016 new size is 16px + 16: "16" + postfix + ".png", 32: "32" + postfix + ".png", + // Chromium forks or non-chromium browsers may still use the traditional 19px + 19: "19" + postfix + ".png", 38: "38" + postfix + ".png", + }, tabId: tab.id }, function() { // if the tab was just closed an error may occur,