Matt Legend Gemmell Modesty is Lying

Mac OS X Cocoa and iPhone Development Services available at Instinctive Code.
Favorites icon
Favorites for iPhone
Speed-dial with style.
Mac OS X Cocoa and iPhone Developer for hire

Other Pages

Categories

Posted
9 September 2005 @ 1pm

Categories
Development, Interface, Source

Tags
, , ,

iTunes 5 window style code

Just a really quick post since I have to get packed to drive Lauren and I down to Dumfries for a ceilidh tonight. I created a little 5-minute hack to give your windows the iTunes 5 look.

You can download the code here, and you can see a screenshot here.

The top metal bar is there (albeit without the sharp corners; if you want them, write the code yourself and grab the graphics and masks from the iTunes.rsrc file within iTunes; they’re in the PICT resources, and you can view them and copy them with Resorcerer). The bits for the bottom metal bar are there, but the code isn’t written; should be child’s play to do it based on the code that’s there already.

Make sure to also add some code to cause it to re-tile when the window is resized. If I get time I’ll polish it all up next week sometime; should be back online on Sunday night.

Have a good weekend, folks, and stay classy.

Update: I updated the code (details here), so it now works properly when the window is resized or zoomed, and also draws the bottom gradient on the window too. Oh, and someone asked what the license for this was; it’s public domain, so use it however you like (it would be cool if you sent me an email if you use it in one of your projects). Enjoy.


1 Comment

David
17 October 2005 @ 10pm

Thanks for the nice bit of code.


Leave a Comment

Call me Captain Updated iTunes 5 window code