Fix issues with About dialog in dark mode on macOS (fixes ).

Note that this only works with macOS 10.14 and above.  Someone with more Mac experience will have to fix it for older versions.
This commit is contained in:
Stephen Anthony 2020-12-26 00:13:14 -03:30
parent 9d292185c0
commit 3b10550cba
1 changed files with 5 additions and 0 deletions
src/macos

View File

@ -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];