dark background color for badge number, #14

This commit is contained in:
Jeremy Schomery 2017-02-03 17:01:41 +03:30
parent ce6973385a
commit 1094ddb6bb

View File

@ -60,7 +60,7 @@ function updateIcon(tab, styles) {
if (!chrome.runtime.lastError) {
var t = prefs.get("show-badge") && styles.length ? ("" + styles.length) : "";
chrome.browserAction.setBadgeText({text: t, tabId: tab.id});
chrome.browserAction.setBadgeBackgroundColor({color: disableAll ? "#aaa" : [0, 0, 0, 0]});
chrome.browserAction.setBadgeBackgroundColor({color: disableAll ? "#aaa" : '#6e6e6e'});
}
});
//console.log("Tab " + tab.id + " (" + tab.url + ") badge text set to '" + t + "'.");