Warning: include_once(/home/ganyard/bithaus.com/wp-content/plugins/lightbox-plugin.php): failed to open stream: Permission denied in /home/ganyard/bithaus.com/wp-settings.php on line 305

Warning: include_once(): Failed opening '/home/ganyard/bithaus.com/wp-content/plugins/lightbox-plugin.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/ganyard/bithaus.com/wp-settings.php on line 305
A smattering of Pixie dust. – Bithaus

Sunday, November 12, 2006

A smattering of Pixie dust.

Pixie is a great tool. If you’re interested in using StyledWindow to recreate existing Polished Metal implementations here are some values for you.

iWeb:

[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];
[styledWindow setBorderEdgeColor: [NSColor colorWithDeviceWhite:0.2510 alpha:1.0]];

iMovie HD & iDVD:

[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];
[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2549 alpha:1.0]];

iPhoto:

[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];
[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.4039 alpha:1.0]];

iTunes 7:

[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7725 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5882 alpha:1.0]];
[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2510 alpha:1.0]];

You can use the Demo App to figure out the heights of the borders.

posted by ganyard at 12:14 pm  

2 Comments

  1. How do I create a Purple or Pink interface with this?? Or maybe a Black and Grey one?????????

    Could you please tell me the 0._____ whatever values??

    Comment by Ben — September 21, 2007 @ 6:15 pm

  2. The method colorWithDeviceWhite: only deals with shades from white to black. Assuming this isn’t a troll (Pink? Purple?) You’ll want to look here for more info on colors in Cocoa:
    http://developer.apple.com/documentation/Cocoa/Conceptual/DrawColor/DrawColor.html

    But I do have to plead with you to please not actually ship Pink or Purple windows.. please?!?!

    Comment by ganyard — September 21, 2007 @ 6:35 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Copyright © Bithaus