Use a semantic color for the ruler view background.
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 2 Apr 2020 21:39:53 +0000 (17:39 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 2 Apr 2020 21:39:53 +0000 (17:39 -0400)
CHANGES
Source/BSLineNumberRulerView.mm

diff --git a/CHANGES b/CHANGES
index fd8b97f41b0891499126cafae7a8732d5cc306f0..b3f7db23788e2f0bcb5acb152a6b3d7aa4454b6a 100644 (file)
--- 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.
index f40e94b17802ad9846d016b1942a8e8eeafa9604..0db146d94f58d7afc57bf9b374659aa3fc4b7888 100644 (file)
@@ -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.