sketch-toolbar-item
sketch-toolbar-item copied to clipboard
Place NSImage or Image generated via js API instead of imagePath
It might be interesting to be able to generate a preview of a layer in the document and include it in the dropdown.
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.
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 .
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.