From: Robert Sesek Date: Thu, 2 Apr 2020 21:39:53 +0000 (-0400) Subject: Use a semantic color for the ruler view background. X-Git-Tag: 2.0.1~7 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=717996501562b32db4296372de1001549fae91d0;p=macgdbp.git Use a semantic color for the ruler view background. --- diff --git a/CHANGES b/CHANGES index fd8b97f..b3f7db2 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ MacGDBp CHANGE LOG ================================================================================ +2.0.1 +##################### +- Change: Draw the source view gutter in a way that is dark-mode compatible. + 2.0 Beta 1 ##################### - New: Unified UI with integrated debugger, breakpoints, and eval panels. diff --git a/Source/BSLineNumberRulerView.mm b/Source/BSLineNumberRulerView.mm index f40e94b..0db146d 100644 --- a/Source/BSLineNumberRulerView.mm +++ b/Source/BSLineNumberRulerView.mm @@ -65,7 +65,7 @@ const CGFloat kRulerRightPadding = 2.5; - (void)drawHashMarksAndLabelsInRect:(NSRect)rect { // Draw the background color. - [[NSColor colorWithDeviceRed:0.871 green:0.871 blue:0.871 alpha:1] set]; + [[NSColor windowBackgroundColor] set]; [NSBezierPath fillRect:rect]; // Draw the right stroke.