I have some old Objective-C that makes a new image that is desaturated.

You could also try tinting it with gray.

Let me try to dig up my old image utils.

Alex Zavatone

> On Aug 22, 2021, at 11:25 AM, Gabriel Zachmann via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> My status item uses an image as icon like this:
> 
>        let itemImage = NSImage(named: "schinkel_icon")
>        itemImage?.isTemplate = false
>        statusBarItem_.button?.image = itemImage
> 
> I would like to make this image grey (usually it is colorful)
> in cases when the status item is paused.
> 
> What would be the best way to do that?
> Should I just replace the icon at runtime with a grayish image?
> 
> Best regards, Gabriel
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to