Skip to content

Commit

Permalink
Grapher: use Tango colors for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter committed Aug 27, 2008
1 parent 1283e30 commit ed13cf5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions PBGitRevisionCell.m
Expand Up @@ -29,8 +29,14 @@ - (id) initWithCoder: (id) coder

- (NSArray*) colors
{
return [NSArray arrayWithObjects:[NSColor redColor], [NSColor blueColor],
[NSColor orangeColor], [NSColor blackColor], [NSColor greenColor], nil];
return [NSArray arrayWithObjects:
[NSColor colorWithCalibratedRed: 0X4e/256.0 green:0X9A/256.0 blue: 0X06/256.0 alpha: 1.0],
[NSColor colorWithCalibratedRed: 0X20/256.0 green:0X4A/256.0 blue: 0X87/256.0 alpha: 1.0],
[NSColor colorWithCalibratedRed: 0XC4/256.0 green:0XA0/256.0 blue: 0 alpha: 1.0],
[NSColor colorWithCalibratedRed: 0X5C/256.0 green:0X35/256.0 blue: 0X66/256.0 alpha: 1.0],
[NSColor colorWithCalibratedRed: 0XA4/256.0 green:0X00/256.0 blue: 0X00/256.0 alpha: 1.0],
[NSColor colorWithCalibratedRed: 0XCE/256.0 green:0X5C/256.0 blue: 0 alpha: 1.0],
nil];
}

- (void) drawLineFromColumn: (int) from toColumn: (int) to inRect: (NSRect) r offset: (int) offset color: (int) c
Expand All @@ -43,7 +49,8 @@ - (void) drawLineFromColumn: (int) from toColumn: (int) to inRect: (NSRect) r of
NSPoint center = NSMakePoint( origin.x + columnWidth * to, origin.y + r.size.height * 0.5);

// Just use red for now.
[[[self colors] objectAtIndex: c % 5] set];
NSArray* colors = [self colors];
[[colors objectAtIndex: c % [colors count]] set];

NSBezierPath * path = [NSBezierPath bezierPath];
[path setLineWidth:2];
Expand Down

0 comments on commit ed13cf5

Please sign in to comment.