Revision: 4836
http://skim-app.svn.sourceforge.net/skim-app/?rev=4836&view=rev
Author: hofman
Date: 2008-10-20 15:52:57 +0000 (Mon, 20 Oct 2008)
Log Message:
-----------
use standard sourcelist background for some of our tables, if available
Modified Paths:
--------------
trunk/NSColor_SKExtensions.m
Modified: trunk/NSColor_SKExtensions.m
===================================================================
--- trunk/NSColor_SKExtensions.m 2008-10-20 14:56:13 UTC (rev 4835)
+++ trunk/NSColor_SKExtensions.m 2008-10-20 15:52:57 UTC (rev 4836)
@@ -39,12 +39,20 @@
#import "NSColor_SKExtensions.h"
[EMAIL PROTECTED] NSColor (SKApplePrivateDeclerations)
++ (NSColor *)_sourceListBackgroundColor;
[EMAIL PROTECTED]
+
@implementation NSColor (SKExtensions)
+ (NSColor *)tableBackgroundColor {
static NSColor *tableBackgroundColor = nil;
if (nil == tableBackgroundColor) {
- tableBackgroundColor = [[NSColor colorWithCalibratedRed:0.905882
green:0.929412 blue:0.964706 alpha:1.0] retain];
+ if ([self respondsToSelector:@selector(_sourceListBackgroundColor)])
+ tableBackgroundColor = [[self _sourceListBackgroundColor]
colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
+ else
+ tableBackgroundColor = [NSColor colorWithCalibratedRed:0.905882
green:0.929412 blue:0.964706 alpha:1.0];
+ [tableBackgroundColor retain];
}
return tableBackgroundColor;
}
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit