Use hi-res attachment file bullets

This commit is contained in:
Dan Stillman 2016-04-06 01:10:01 -04:00
parent d6064cfeba
commit d7309ca64e

View file

@ -1139,9 +1139,10 @@ Zotero.ItemTreeView.prototype.getImageSrc = function(row, col)
if (item.isFileAttachment()) { if (item.isFileAttachment()) {
let exists = item.fileExistsCached(); let exists = item.fileExistsCached();
if (exists !== null) { if (exists !== null) {
let suffix = Zotero.hiDPISuffix;
return exists return exists
? "chrome://zotero/skin/bullet_blue.png" ? `chrome://zotero/skin/bullet_blue{$suffix}.png`
: "chrome://zotero/skin/bullet_blue_empty.png"; : `chrome://zotero/skin/bullet_blue_empty{$suffix}.png`;
} }
item.fileExists() item.fileExists()