From 717996501562b32db4296372de1001549fae91d0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 2 Apr 2020 17:39:53 -0400 Subject: [PATCH] Use a semantic color for the ruler view background. --- CHANGES | 4 ++++ Source/BSLineNumberRulerView.mm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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. -- 2.43.5