Revision: 12162 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12162&view=rev Author: amaxwell Date: 2007-12-31 13:37:37 -0800 (Mon, 31 Dec 2007)
Log Message: ----------- Scale and darken shadow to be more consistent with IconServices. I'm not sure that it's possible to match exactly. Modified Paths: -------------- trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m =================================================================== --- trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m 2007-12-31 20:33:07 UTC (rev 12161) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m 2007-12-31 21:37:37 UTC (rev 12162) @@ -144,7 +144,10 @@ __subtitleAttributes = [ta copy]; __shadow = [[NSShadow alloc] init]; - [__shadow setShadowOffset:NSMakeSize(0.0, -3.0)]; + // IconServices shadows look darker than the normal NSShadow (especially Leopard folder shadows) so try to match + [__shadow setShadowColor:[NSColor colorWithCalibratedWhite:0 alpha:0.4]]; + [__shadow setShadowOffset:NSMakeSize(0.0, -2.0)]; + // this will have to be scaled when drawing, since it's in a global coordinate space [__shadow setShadowBlurRadius:5.0]; // QTMovie raises if +initialize isn't sent on the AppKit thread @@ -1025,6 +1028,9 @@ BOOL useSubtitle = [_dataSource respondsToSelector:@selector(fileView:subtitleAtIndex:)]; NSFileManager *fileManager = [NSFileManager defaultManager]; + // shadow needs to be scaled as the icon scale changes to approximate the IconServices shadow + [__shadow setShadowBlurRadius:2.0 * [self iconScale]]; + // iterate each row/column to see if it's in the dirty rect, and evaluate the current cache state for (r = rMin; r < rMax; r++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit