Reputation: 7128
For a WebExtension, we use browser.browserAction.setIcon
to set the icon. As you can see in this sample, to fit in, the icon should have a dark or light background.
How can my Javascript code know which theme is in effect? Or better, can I determine what the background color for the toolbar is so I can make an appropriate icon?
Upvotes: 5
Views: 661