Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Text color for brushed metal

Text color for brushed metal
Thread Tools
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Nov 7, 2002, 09:53 PM
 
I was wondering how you can get nice looking text for a brushed metal interface. Black looks alright, but I really like the way text looks on "Backup" (Apples little utility). It looks like it was engraved into the "metal". Anywayone have any suggestions?
     
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Nov 8, 2002, 05:12 AM
 
Engraved text is easy: draw the text white, then move upwards one pixel and draw it black.

Two ways to do it:
1. Duplicate every text field in your nib, with a black version overlapping a white version. Hard to edit the text, though, since you have to do it twice, and once on a field that'll be hard to click.
2. Make a trivial subclass of NSTextFieldCell, and override -drawInteriorWithFrame:inView: to twiddle the rect and the colors in between calling super twice.
Rick Roe
icons.cx | weblog
     
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Nov 8, 2002, 09:16 AM
 
Once again Rickster, you've given me some great help! Thanks.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2