Fix license text for dark mode

This commit is contained in:
Lukhnos Liu 2018-11-20 21:47:30 -08:00
parent 1ca73fe794
commit 39a7eca195
1 changed files with 5 additions and 2 deletions

View File

@ -60,7 +60,10 @@ static const NSTimeInterval kTranslocationRemovalDeadline = 60.0;
NSAttributedString *attrStr = [[[NSAttributedString alloc] initWithRTF:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"License" ofType:@"rtf"]] documentAttributes:NULL] autorelease];
[[self.textView textStorage] setAttributedString:attrStr];
NSMutableAttributedString *mutableAttrStr = [[attrStr mutableCopy] autorelease];
[mutableAttrStr addAttribute:NSForegroundColorAttributeName value:[NSColor controlTextColor] range:NSMakeRange(0, [mutableAttrStr length])];
[[self.textView textStorage] setAttributedString:mutableAttrStr];
[self.textView setSelectedRange:NSMakeRange(0, 0)];
NSBundle *installingBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:kTargetBin ofType:kTargetType]];
_installingVersion = [[[installingBundle infoDictionary] objectForKey:(id)kCFBundleVersionKey] retain];