Use HiDPI icons in related-items box
This commit is contained in:
parent
39ed2217cd
commit
43692ee564
1 changed files with 1 additions and 22 deletions
|
@ -152,28 +152,7 @@
|
||||||
let id = relatedItem.id;
|
let id = relatedItem.id;
|
||||||
let icon = document.createElement("image");
|
let icon = document.createElement("image");
|
||||||
icon.className = "zotero-box-icon";
|
icon.className = "zotero-box-icon";
|
||||||
let type = Zotero.ItemTypes.getName(relatedItem.itemTypeID);
|
icon.setAttribute('src', relatedItem.getImageSrc());
|
||||||
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');
|
|
||||||
|
|
||||||
var label = document.createElement("label");
|
var label = document.createElement("label");
|
||||||
label.className = "zotero-box-label";
|
label.className = "zotero-box-label";
|
||||||
|
|
Loading…
Reference in a new issue