Re: NSPanel / NSTextView in Dark Mode
Re: NSPanel / NSTextView in Dark Mode
- Subject: Re: NSPanel / NSTextView in Dark Mode
- From: Steve Mills via Cocoa-dev <email@hidden>
- Date: Fri, 5 Jun 2020 13:50:39 -0500
On Jun 5, 2020, at 13:33:17, Gabriel Zachmann via Cocoa-dev
<email@hidden> wrote:
>
> Everything works, *except* in Dark Mode, the text in the NSTextView is not
> legible, since it's black text on dark background.
>
> What should I do to make this panel also Dark Mode "proof" ?
Make sure the text color is set to a named color such as Label Color instead of
Black. If the text view doesn't contain text in the xib, it might not remember
the color. You might need to set the text color in code. Just set it to
NSColor.labelColor.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden