From d5de5726369803165aece4f3751cba6bcc72abc5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 9 Mar 2008 12:36:24 -0400 Subject: [PATCH] Stroke the gutter at the top and bottom * Source/BSLineNumberView.m: ([BSLineNumberView drawRect:]): Draw a line at the top and bottom of the gutter view --- Source/BSLineNumberView.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/BSLineNumberView.m b/Source/BSLineNumberView.m index 27f75f1..b458917 100644 --- a/Source/BSLineNumberView.m +++ b/Source/BSLineNumberView.m @@ -50,6 +50,12 @@ [[NSColor colorWithDeviceRed:0.871 green:0.871 blue:0.871 alpha:1] set]; [NSBezierPath fillRect:rect]; + [[NSColor blackColor] set]; + [NSBezierPath strokeLineFromPoint:NSMakePoint(rect.origin.x, rect.origin.y) toPoint:NSMakePoint(rect.origin.x + rect.size.width, rect.origin.y)]; + + [[NSColor grayColor] set]; + [NSBezierPath strokeLineFromPoint:NSMakePoint(rect.origin.x, rect.size.height) toPoint:NSMakePoint(rect.origin.x + rect.size.width, rect.size.height)]; + // font attributes for the line number NSDictionary *attrs = [NSDictionary dictionaryWithObjectsAndKeys:[NSFont fontWithName:@"Monaco" size:10.0], NSFontAttributeName, [NSColor grayColor], NSForegroundColorAttributeName, nil]; -- 2.22.5