Cocoa Port: Fix a bug where the troubleshooting form text would not switch to Dark Mode appearance.

This commit is contained in:
rogerman 2022-04-18 15:32:06 -07:00
parent 864d419513
commit 42da2645c1
2 changed files with 89978 additions and 88131 deletions

View File

@ -184,7 +184,11 @@
finalFormTextStr = [finalFormTextStr stringByAppendingString:@"\n\n[ END DESMUME TROUBLESHOOTING INFORMATION ]"];
[bindings setValue:finalFormTextStr forKey:@"finalFormText"];
NSDictionary *formTextAttr = [NSDictionary dictionaryWithObjectsAndKeys:
[NSColor controlTextColor], NSForegroundColorAttributeName,
nil];
[bindings setValue:[[[NSAttributedString alloc] initWithString:finalFormTextStr attributes:formTextAttr] autorelease] forKey:@"finalFormText"];
// Remember the current form and switch the window view.
currentForm = [window contentView];