• 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: HIG-compliant image highlight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HIG-compliant image highlight


  • Subject: Re: HIG-compliant image highlight
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 23 Dec 2005 14:57:35 -0800


On Dec 23, 2005, at 6:21 AM, Konstantin Anoshkin wrote:

Is there "official" way to darken an NSImage ala NSButtonCell? Currently I am doing it like this:
[[[NSColor blackColor] colorWithAlphaComponent: 0.46f] set];
NSRectFillUsingOperation(theRect, NSCompositeSourceAtop);

The alpha value of 0.46 seems to be very close, but I am sure NSButtonCell highlights its image in a different way. Can anybody give me a clue?

NSButtonCell uses alternative images if they're provided, so the aqua buttons you see in their highlighted state are drawn with hand- tweaked images.

-jcr

John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >HIG-compliant image highlight (From: Konstantin Anoshkin <email@hidden>)

  • Prev by Date: Re: Transparent NSRectFill?
  • Next by Date: Re: What notification is posted when hitting the maximize button in an NSWindow
  • Previous by thread: HIG-compliant image highlight
  • Next by thread: Re: HIG-compliant image highlight
  • Index(es):
    • Date
    • Thread