Fix license text for dark mode
This commit is contained in:
parent
1ca73fe794
commit
39a7eca195
|
@ -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];
|
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]];
|
NSBundle *installingBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:kTargetBin ofType:kTargetType]];
|
||||||
_installingVersion = [[[installingBundle infoDictionary] objectForKey:(id)kCFBundleVersionKey] retain];
|
_installingVersion = [[[installingBundle infoDictionary] objectForKey:(id)kCFBundleVersionKey] retain];
|
||||||
|
|
Loading…
Reference in New Issue