From cc691abeee93b92e9c331f648cc3b3652b7fcb5d Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 23 Jul 2025 12:55:58 +0200 Subject: [PATCH] Add missing icons in context menus on Windows/Linux * Add missing icon for "My Library" in the "Copy To" menu in cases where there are no other libraries in that menu * Add icon to the "New Collection..." option in the item context menu --- chrome/content/zotero/zoteroPane.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 15c2cad339..c0fb204ab2 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4197,6 +4197,7 @@ var ZoteroPane = new function() myLibraryMenuItem.setAttribute("label", myLibrary.name); myLibraryMenuItem.setAttribute("image", myLibrary.treeViewImage); myLibraryMenuItem.setAttribute("value", myLibrary.treeViewID); + myLibraryMenuItem.classList.add('menuitem-iconic'); myLibraryMenuItem.addEventListener("command", (event) => { if (event.target.tagName == 'menuitem') { this.copyCollection(myLibrary); @@ -4241,6 +4242,8 @@ var ZoteroPane = new function() let newCollectionMenuitem = document.createXULElement('menuitem'); document.l10n.setAttributes(newCollectionMenuitem, 'menu-new-collection'); + newCollectionMenuitem.classList.add('menuitem-iconic'); + newCollectionMenuitem.classList.add('zotero-menuitem-new-collection'); newCollectionMenuitem.addEventListener('command', () => this.addItemsToCollection(items, null, true)); let separator = document.createXULElement('menuseparator'); popup.replaceChildren(newCollectionMenuitem, separator);