mirror of
https://github.com/ksherlock/ample.git
synced 2024-06-08 18:29:30 +00:00
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])
|
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
Block a user