RE: How to get Tool Tip color ?
RE: How to get Tool Tip color ?
- Subject: RE: How to get Tool Tip color ?
- From: "Chen Wang" <email@hidden>
- Date: Wed, 16 Nov 2005 16:57:39 -0500
- Thread-topic: How to get Tool Tip color ?
This is the way I'm going for the moment. But unfortunately, it cannot
help to *programmatically* retrieve what color is used by tool tip.
Since a user may change the color scheme through System Preference, an
ideal application should be able to apply the changes to all of its UI
elements on the fly.
Anyway, I've just tested DigitalColor Meter, and find it can make the
color sampling much easier and faster than Photoshop (overkill), thanks.
Chen
>Chen:
>
> You could have any tooltip pop up, then press Cmd-Shift-3 to take
>a screenshot (so you don't have to move off the tooltip's source).
>Open the picture on your desktop and use DigitalColor Meter (in your
>Apps/Utilities folder) to sample the color.
>
>--
>I.S.
>
>
>On Nov 16, 2005, at 1:16 PM, Chen Wang wrote:
>
>> Dear list:
>>
>>
>>
>> In cocoa, is it possible to get that (yellow) color which is being
>> used
>> as the background of Tool Tip?
>>
>>
>>
>> I'm trying to build a small custom window which must have the same
>> background color as tool tip's. I've tried all system colors that the
>> NSColor class can return, but still out of luck. I know that I can
>> hardcode the RGB value to something like 0xFEFEC9, but I would
>> prefer to
>> ask the system for this color, so that I can make it always
>> conformed to
>> the appearance settings. Any idea?
>>
>>
>>
>> Thanks in advance!!!
>>
>>
>>
>> Chen
Confidentiality Notice: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
_______________________________________________
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