my app relies on macosLib to create a AboutBox with a string localized in various languages. It has always worked all right. And it still works all right in LightMode.
But when I switch to DarkMode, then the background turns black, but the text too remains black.
What to do to have the text show up white?
Suggestions welcome. Thanks you.
Below is the relevant part of the code I use. I guess "NSForegroundColorAttributeName" should be added, but I do not know where or how.
dim s as string = myLocalizedString
dim keys() as NSObject
dim objs() as NSObject
keys.Append new NSString("Credits")
objs.Append new NSAttributedString(s)//in DarkMode it remains black over black background
dim d as new NSDictionary(keys, objs)