-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to SVG icons with "context-fill" #2053
Comments
Theme color is applied only when {
const icons = browser.runtime.getManifest().variable_color_icons;
Promise.all(
[browser.runtime.getBrowserInfo()].concat(
Object.keys(icons)
.map(size => {
return new Promise((resolve, _reject) => {
const request = new XMLHttpRequest();
request.open('GET', icons[size]);
request.addEventListener('load', () => {
resolve({ size, data: request.responseText });
});
request.send();
});
})
)
).then(results => {
const browserInfo = results.shift();
if (parseInt(browserInfo.version.split('.')[0]) >= 62) {
const icons = { path: {} };
for (const icon of results) {
icons.path[icon.size] = `data:image/svg+xml,${encodeURIComponent(icon.data)}`;
}
browser.browserAction.setIcon(icons);
browser.sidebarAction.setIcon(icons);
}
});
} but it doesn't solve the problem... |
@piroor is this still on your radar? Looks like next ESR is FF68 and will come out July 9, 2019. |
@piroor friendly reminder. |
Sadly |
@piroor is it time to close this one? |
Thanks I forgot about this. |
"context-fill" for icons is availble only on Firefox 62 and later, and doesn't work on ESR60. After ESR60 is outdated and new ESR (66 or 67?) is released, we need to switch icons to context-fill versions.
The text was updated successfully, but these errors were encountered: