mirror of https://github.com/ksherlock/ample.git
fix log window to work better in dark mode.
This commit is contained in:
parent
e86b5c3236
commit
c88fe397f7
|
@ -97,7 +97,10 @@ static NSURL *MameWorkingDirectory(void) {
|
|||
{
|
||||
if ([string length])
|
||||
{
|
||||
[[[_textView textStorage] mutableString] appendString: string];
|
||||
// needs explicit color attribute for proper dark mode support.
|
||||
NSDictionary *attr = @{ NSForegroundColorAttributeName: [NSColor textColor] };
|
||||
NSAttributedString *astr = [[NSAttributedString alloc] initWithString: string attributes: attr];
|
||||
[[_textView textStorage] appendAttributedString: astr];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue