Squash merge bww improvements, tableview reordering

This commit is contained in:
Loren Brichter
2011-08-11 22:44:42 -04:00
parent c310441ceb
commit cb8e5da3d1
14 changed files with 855 additions and 40 deletions
@@ -30,9 +30,18 @@
CGContextRef g;
if((g = TUIGraphicsGetCurrentContext()) != nil){
[NSGraphicsContext setCurrentContext:[NSGraphicsContext graphicsContextWithGraphicsPort:g flipped:FALSE]];
CGContextSetRGBFillColor(g, 0.8, 0.8, 0.8, 1);
CGContextFillRect(g, self.bounds);
NSColor *start = [NSColor colorWithCalibratedRed:0.8 green:0.8 blue:0.8 alpha:1];
NSColor *end = [NSColor colorWithCalibratedRed:0.9 green:0.9 blue:0.9 alpha:1];
NSGradient *gradient = nil;
gradient = [[NSGradient alloc] initWithStartingColor:start endingColor:end];
[gradient drawInRect:self.bounds angle:90];
[gradient release];
[[start shadowWithLevel:0.1] set];
NSRectFill(NSMakeRect(0, 0, self.bounds.size.width, 1));
CGFloat labelHeight = 18;
self.labelRenderer.frame = CGRectMake(15, roundf((self.bounds.size.height - labelHeight) / 2.0), self.bounds.size.width - 30, labelHeight);