commit 43692ee5648c2e62497c7ac9951c2ccda095c5be parent 39ed2217cdc1b5bb471b8acc23998c95261cae8b Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 26 Mar 2018 02:08:23 -0400 Use HiDPI icons in related-items box Diffstat:
| M | 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 @@ -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";