• 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: Discussion on how to draw text like that seen in toolbars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Discussion on how to draw text like that seen in toolbars (From: Alex Kac <email@hidden>)

  • Prev by Date: Key window/first responder handling with NSDrawer containing NSTextView
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: Discussion on how to draw text like that seen in toolbars
  • Next by thread: Re: Discussion on how to draw text like that seen in toolbars
  • Index(es):
    • Date
    • Thread