From 3b10550cba17fe9ba3357e297e4a4d26a0bdceaf Mon Sep 17 00:00:00 2001 From: Stephen Anthony <sa666666@gmail.com> Date: Sat, 26 Dec 2020 00:13:14 -0330 Subject: [PATCH] Fix issues with About dialog in dark mode on macOS (fixes #748). Note that this only works with macOS 10.14 and above. Someone with more Mac experience will have to fix it for older versions. --- src/macos/AboutBox.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/macos/AboutBox.m b/src/macos/AboutBox.m index 188809386..e2ec7ae5a 100644 --- a/src/macos/AboutBox.m +++ b/src/macos/AboutBox.m @@ -95,6 +95,11 @@ static AboutBox *sharedInstance = nil; withRTF:[creditsString RTFFromRange: NSMakeRange( 0, [creditsString length] ) documentAttributes:@{NSDocumentTypeDocumentAttribute: NSRTFTextDocumentType}]]; + if (@available(macOS 10.14, *)) { + creditsField.usesAdaptiveColorMappingForDarkAppearance = true; + } else { + // Fallback on earlier versions + } // Prepare some scroll info creditsBounds = [creditsField bounds];