mirror of
https://github.com/ksherlock/ample.git
synced 2026-04-19 07:33:52 +00:00
fix log window to work better in dark mode.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user