Setting icon for ActionExtension on macOS

Hi,

I’m looking for customizing the icon displayed in Actions contextual menu in Finder or in Extensions settings in System Preferences.

I use NSExtensionServiceFinderPreviewIconName in extension’s plist. If I set NSActionTemplate or any NSxxx icon name I see the icon sized correctly in popup menu but not templated (wrong color in dark mode).In System Preferences I don’t get any icon.

If I use any SF Symbol it fails and fallback to bundle’s icon.

If I use a templated asset I have a size issue. Finder Popup expect 20 points icon while System Preferences expect 24 points.

If I use vectors Finder Popup will size accordingly but not System Preferences.

I wanted to look at macOS pre-installed Actions (crop video, resize image) but I could not find the hosting bundle.

Any idea or suggestion ?

Setting icon for ActionExtension on macOS
 
 
Q