sketch-toolbar-item icon indicating copy to clipboard operation
sketch-toolbar-item copied to clipboard

Place NSImage or Image generated via js API instead of imagePath

Open Pausansol opened this issue 4 years ago • 3 comments

It might be interesting to be able to generate a preview of a layer in the document and include it in the dropdown.

Pausansol avatar Oct 31 '20 22:10 Pausansol

Hey Pablo, can you explain your use case a bit more? Sounds like you want to have more control over the menu items in a toolbar dropdown. Some more details of what you're trying to accomplish might be helpful in thinking through the feature.

abynim avatar Nov 02 '20 08:11 abynim

Hi Aby, sure. For example, I want to export Library Preview images from each library and expose them into the dropown menu of the toolbar item along with the library name.

El lun., 2 nov. 2020 a las 9:42, Aby Nimbalkar ([email protected]) escribió:

Hey Pablo, can you explain your use case a bit more? Sounds like you want to have more control over the menu items in a toolbar dropdown. Some more details of what you're trying to accomplish might be helpful in thinking through the feature.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abynim/sketch-toolbar-item/issues/10#issuecomment-720326471, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDMZP5CJL3KWOAOOFI2TFDSNZWFTANCNFSM4TGEGHRA .

Pausansol avatar Nov 02 '20 08:11 Pausansol

I guess you'll also need a way to update the image/title based on some event then (like when libraries are added/removed, or the preview image has changed?). Or perhaps a more dynamic way to update the items whenever the menu is being activated by the user.

abynim avatar Nov 02 '20 10:11 abynim