2 // AIMessageTabSplitView.m
5 // Created by Evan Schoenberg on 4/9/07.
8 #import "AIMessageTabSplitView.h"
9 #import <PSMTabBarControl/NSBezierPath_AMShading.h>
11 @implementation AIMessageTabSplitView
20 - (void)setLeftColor:(NSColor *)inLeftColor rightColor:(NSColor *)inRightColor
22 if (leftColor != inLeftColor) {
24 leftColor = [inLeftColor retain];
27 if (rightColor != inRightColor) {
29 rightColor = [inRightColor retain];
32 [self setNeedsDisplay:YES];
35 -(void)drawDividerInRect:(NSRect)aRect
37 if (rightColor && leftColor) {
38 NSBezierPath *path = [NSBezierPath bezierPathWithRect:aRect];
39 [path linearVerticalGradientFillWithStartColor:leftColor
42 [super drawDividerInRect:aRect];