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

Commit

Permalink
Remove one of the addon icon svgs. (#4132)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Feb 21, 2018
1 parent 1d40af1 commit b456233
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions addon/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ const LibraryButton = {
}
this.PAGE_TO_OPEN = permissionPages.length === 1 ? permissionPages[0].replace(/\*$/, "") : "https://screenshots.firefox.com/";
this.PAGE_TO_OPEN += "shots";
this.ICON_URL = webExtension.extension.getURL("icons/icon-16-v2.svg");
this.ICON_URL_2X = webExtension.extension.getURL("icons/icon-32-v2.svg");
this.ICON_URL = webExtension.extension.getURL("icons/icon-v2.svg");
this.LABEL = webExtension.extension.localizeMessage("libraryLabel");
CustomizableUI.addListener(this);
for (const win of CustomizableUI.windows) {
Expand Down Expand Up @@ -112,7 +111,7 @@ const LibraryButton = {
item.className = "subviewbutton subviewbutton-iconic";
item.addEventListener("command", () => win.openUILinkIn(this.PAGE_TO_OPEN, "tab"));
item.id = this.ITEM_ID;
const iconURL = win.devicePixelRatio >= 1.1 ? this.ICON_URL_2X : this.ICON_URL;
const iconURL = this.ICON_URL;
item.setAttribute("image", iconURL);
item.setAttribute("label", this.LABEL);

Expand Down Expand Up @@ -247,7 +246,7 @@ function initPhotonPageAction(api, webExtension) {
photonPageAction = PageActions.actionForID(id) || PageActions.addAction(new PageActions.Action({
id,
title: "Take a Screenshot",
iconURL: webExtension.extension.getURL("icons/icon-32-v2.svg"),
iconURL: webExtension.extension.getURL("icons/icon-v2.svg"),
_insertBeforeActionID: null,
onCommand(event, buttonNode) {
if (port) {
Expand Down
2 changes: 1 addition & 1 deletion addon/webextension/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ this.main = (function() {
}

function setIconActive(active, tabId) {
const path = active ? "icons/icon-highlight-32-v2.svg" : "icons/icon-32-v2.svg";
const path = active ? "icons/icon-highlight-32-v2.svg" : "icons/icon-v2.svg";
startBackground.photonPageActionPort.postMessage({
type: "setProperties",
iconPath: path
Expand Down
1 change: 0 additions & 1 deletion addon/webextension/icons/icon-32-v2.svg

This file was deleted.

0 comments on commit b456233

Please sign in to comment.