Answer the question
In order to leave comments, you need to log in
How to change color of google chrome extension icon?
All the best!
I'm working on a small extension for myself, I ran into the problem of changing the color of the icon, in the dock everything is as simple as chrome.browserAction.setBadgeBackgroundColor(object details) where object details is an array from the color code [255, 0, 0, 255] or #FF0000 but I have it doesn't work
if so:
chrome.browserAction.setBadgeBackgroundColor(['#FF0000']);
chrome.browserAction.setBadgeBackgroundColor([255, 0, 0, 255]);
chrome.browserAction.setBadgeBackgroundColor({ color: [255, 0, 0, 255]});
Answer the question
In order to leave comments, you need to log in
You do not confuse a badge with a number and an extension icon ? Because you are talking about an icon, and the method is called set Badge BackgroundColor.
An icon can only be replaced with another icon, its background does not change.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question