Re: Discussion on how to draw text like that seen in toolbars
Re: Discussion on how to draw text like that seen in toolbars
- Subject: Re: Discussion on how to draw text like that seen in toolbars
- From: Dave Keck <email@hidden>
- Date: Mon, 4 May 2009 10:04:25 -1000
While I'm not familiar with the original discussion, I will say that
the effect you're going for can easily be created using a shadow. If
it doesn't look right, the values you're using to create the shadow
probably need tweaking. For the recessed look, I use a shadow offset
of (0.0, 1.1) or (0.0, -1.1) (depending on whether I'm drawing in a
flipped context), which will cast the shadow at a 90 degree angle, and
with one pixel of actual shadow. Then I set the color of the shadow to
white, with an alpha of 0.75. This technique produces text that looks
nearly identical to the labels you see in toolbars.
David
_______________________________________________
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