diff --git a/AppKit/Themes/Aristo/ThemeDescriptors.j b/AppKit/Themes/Aristo/ThemeDescriptors.j index 48b10d3a8..b8d02385a 100755 --- a/AppKit/Themes/Aristo/ThemeDescriptors.j +++ b/AppKit/Themes/Aristo/ThemeDescriptors.j @@ -1437,9 +1437,11 @@ var themedButtonValues = nil, { var scrollerWidth = [CPScroller scrollerWidth], corner = [[_CPCornerView alloc] initWithFrame:CGRectMake(0.0, 0.0, scrollerWidth, 23.0)], - normal = PatternColor("tableview-headerview.png", 1.0, 23.0); + normal = PatternColor("tableview-headerview.png", 1.0, 23.0), + dividerColor = [CPColor colorWithHexString:@"dce0e2"]; [corner setValue:normal forThemeAttribute:"background-color"]; + [corner setValue:dividerColor forThemeAttribute:"divider-color"]; return corner; } diff --git a/AppKit/_CPCornerView.j b/AppKit/_CPCornerView.j index b1a4ff7bd..9906ab665 100644 --- a/AppKit/_CPCornerView.j +++ b/AppKit/_CPCornerView.j @@ -33,8 +33,23 @@ + (id)themeAttributes { - return [CPDictionary dictionaryWithObjects:[[CPNull null]] - forKeys:[@"background-color"]]; + return [CPDictionary dictionaryWithObjects:[[CPNull null], [CPNull null]] + forKeys:[@"background-color", "divider-color"]]; +} + +- (void)drawRect:(CGRect)aRect +{ + var context = [[CPGraphicsContext currentContext] graphicsPort], + color = [self currentValueForThemeAttribute:@"divider-color"]; + + CGContextSetLineWidth(context, 1); + CGContextSetStrokeColor(context, [self currentValueForThemeAttribute:@"divider-color"]); + + CGContextMoveToPoint(context, _CGRectGetMinX(aRect) + 0.5, ROUND(_CGRectGetMinY(aRect))); + CGContextAddLineToPoint(context, _CGRectGetMinX(aRect) + 0.5, ROUND(_CGRectGetMaxY(aRect))); + + CGContextClosePath(context); + CGContextStrokePath(context); } - (void)layoutSubviews