Skip to content
Snippets Groups Projects
Commit fe0cc0eb authored by George Nachman's avatar George Nachman
Browse files

Make it possible to load prefs from nightly build by not requiring exactly...

Make it possible to load prefs from nightly build by not requiring exactly three components in color dicts
parent 8cc0035e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -145,10 +145,6 @@
 
+ (NSColor*)decodeColor:(NSDictionary*)plist
{
if ([plist count] != 3) {
return [NSColor blackColor];
}
return [NSColor colorWithCalibratedRed:[[plist objectForKey:@"Red Component"] floatValue]
green:[[plist objectForKey:@"Green Component"] floatValue]
blue:[[plist objectForKey:@"Blue Component"] floatValue]
Loading
Loading
//
// NSScreen+iTerm.h
// iTerm
//
// Created by George Nachman on 12/17/13.
//
//
#import <Cocoa/Cocoa.h>
@interface NSScreen (iTerm)
@end
//
// NSScreen+iTerm.m
// iTerm
//
// Created by George Nachman on 12/17/13.
//
//
#import "NSScreen+iTerm.h"
@implementation NSScreen (iTerm)
@end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment