• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to grey out a status item's image?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to grey out a status item's image?


  • Subject: Re: Best way to grey out a status item's image?
  • From: Alex Zavatone via Cocoa-dev <email@hidden>
  • Date: Sun, 22 Aug 2021 11:36:48 -0500

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
> <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Best way to grey out a status item's image? (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Best way to grey out a status item's image?
  • Next by Date: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
  • Previous by thread: Best way to grey out a status item's image?
  • Next by thread: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
  • Index(es):
    • Date
    • Thread