Skip to content

Commit

Permalink
Add color to extension icon to help with dark/light theme contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnorwood committed Apr 18, 2022
1 parent 60a17a0 commit b0a1548
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const APPLICABLE_PROTOCOLS = ["http:", "https:"];
Only operates on tabs whose URL's protocol is applicable. */
function initializePageAction(tab) {
if (protocolIsApplicable(tab.url)) {
browser.pageAction.setIcon({tabId: tab.id, path: "icons/icon.svg"});
browser.pageAction.setIcon({tabId: tab.id, path: "icons/icon-bw.svg"});
browser.pageAction.setTitle({tabId: tab.id, title: 'Swap domains'});
browser.pageAction.show(tab.id);
}
Expand Down
1 change: 1 addition & 0 deletions icons/icon-bw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion icons/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Domain Swapper",
"version": "1.1.0",
"version": "1.1.1",
"description": "Jump between hostnames but keep the rest of your current URL path!",
"icons": {
"48": "icons/icon.svg",
Expand Down

0 comments on commit b0a1548

Please sign in to comment.