From 43692ee5648c2e62497c7ac9951c2ccda095c5be Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 26 Mar 2018 02:08:23 -0400 Subject: [PATCH] Use HiDPI icons in related-items box --- chrome/content/zotero/bindings/relatedbox.xml | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/chrome/content/zotero/bindings/relatedbox.xml b/chrome/content/zotero/bindings/relatedbox.xml index 7bb5d0cf3f..17368b0bdd 100644 --- a/chrome/content/zotero/bindings/relatedbox.xml +++ b/chrome/content/zotero/bindings/relatedbox.xml @@ -152,28 +152,7 @@ let id = relatedItem.id; let icon = document.createElement("image"); icon.className = "zotero-box-icon"; - let type = Zotero.ItemTypes.getName(relatedItem.itemTypeID); - if (type=='attachment') - { - switch (relatedItem.attaachmentLinkMode) { - case Zotero.Attachments.LINK_MODE_LINKED_URL: - type += '-web-link'; - break; - - case Zotero.Attachments.LINK_MODE_IMPORTED_URL: - type += '-snapshot'; - break; - - case Zotero.Attachments.LINK_MODE_LINKED_FILE: - type += '-link'; - break; - - case Zotero.Attachments.LINK_MODE_IMPORTED_FILE: - type += '-file'; - break; - } - } - icon.setAttribute('src','chrome://zotero/skin/treeitem-' + type + '.png'); + icon.setAttribute('src', relatedItem.getImageSrc()); var label = document.createElement("label"); label.className = "zotero-box-label";