From 6d602d53cfd97d11c59c0dc20cee0a14d7070e44 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 11 Jan 2011 18:52:28 -0500 Subject: [PATCH] Draw the stroke and background color for the ruler view --- Source/BSLineNumberRulerView.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/BSLineNumberRulerView.m b/Source/BSLineNumberRulerView.m index 601c5ac..c70d209 100644 --- a/Source/BSLineNumberRulerView.m +++ b/Source/BSLineNumberRulerView.m @@ -32,4 +32,16 @@ [self setClientView:[[self scrollView] documentView]]; } +- (void)drawHashMarksAndLabelsInRect:(NSRect)rect +{ + // Draw the background color. + [[NSColor colorWithDeviceRed:0.871 green:0.871 blue:0.871 alpha:1] set]; + [NSBezierPath fillRect:rect]; + + // Draw the right stroke. + [[NSColor grayColor] setStroke]; + [NSBezierPath strokeLineFromPoint:NSMakePoint(NSMaxX(rect), NSMinY(rect)) + toPoint:NSMakePoint(NSMaxX(rect), NSMaxY(rect))]; +} + @end -- 2.43.5