Skip to content

Commit

Permalink
Update the icons used
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Nov 23, 2023
1 parent 2bab5af commit bf0e3f1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
8 changes: 8 additions & 0 deletions extension/assets/icons/route-blocked-w.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
9 changes: 0 additions & 9 deletions extension/assets/route-blocked.svg

This file was deleted.

8 changes: 4 additions & 4 deletions src/helpers/pageAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ const updateTabProxyIcon = async (tabId: number, globalProxyDetails: ProxyDetail
if (globalProxyDetails.socksEnabled) {
browser.pageAction.setTitle({ tabId, title: tooltip });
browser.pageAction.setIcon({
path: {}, // This will resetthe icon to the default from the manifest
path: {}, // This will reset the icon to the default from the manifest
tabId,
});
} else {
browser.pageAction.setTitle({ tabId, title: 'Proxy not in use' });
browser.pageAction.setIcon({
path: {
16: '/assets/route-blocked.svg',
48: '/assets/route-blocked.svg',
96: '/assets/route-blocked.svg',
16: '/assets/icons/route-blocked-w.svg',
48: '/assets/icons/route-blocked-w.svg',
96: '/assets/icons/route-blocked-w.svg',
},
tabId,
});
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function getManifest() {
default_area: 'navbar',
},
page_action: {
default_icon: './assets/route.svg',
default_icon: './assets/icons/route.svg',
default_popup: './dist/pageaction/index.html',
},
background: {
Expand Down

0 comments on commit bf0e3f1

Please sign in to comment.