Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
add context fill icons
Browse files Browse the repository at this point in the history
  • Loading branch information
johngruen authored and ianb committed Jul 11, 2017
1 parent af32978 commit 7cb237f
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions addon/webextension/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ this.main = (function() {
}

function setIconActive(active, tabId) {
let path = active ? "icons/icon-highlight-32.svg" : "icons/icon-32.svg";
let path = active ? "icons/icon-highlight-32-v2.svg" : "icons/icon-32-v2.svg";
if ((!hasSeenOnboarding) && !active) {
path = "icons/icon-starred-32.svg";
path = "icons/icon-starred-32-v2.svg";
}
browser.browserAction.setIcon({path, tabId}).catch((error) => {
// FIXME: use errorCode
Expand Down
1 change: 1 addition & 0 deletions addon/webextension/icons/icon-16-v2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion addon/webextension/icons/icon-16.svg

This file was deleted.

1 change: 1 addition & 0 deletions addon/webextension/icons/icon-32-v2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion addon/webextension/icons/icon-32.svg

This file was deleted.

1 change: 1 addition & 0 deletions addon/webextension/icons/icon-starred-32-v2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion addon/webextension/icons/icon-starred-32.svg

This file was deleted.

4 changes: 2 additions & 2 deletions addon/webextension/manifest.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"default_locale": "en_US",
"browser_action": {
"default_icon": {
"16": "icons/icon-16.svg",
"32": "icons/icon-32.svg"
"16": "icons/icon-16-v2.svg",
"32": "icons/icon-32-v2.svg"
},
"default_title": "Firefox Screenshots",
"browser_style": false
Expand Down

0 comments on commit 7cb237f

Please sign in to comment.