diff --git a/darwin/multilineentry.m b/darwin/multilineentry.m index 6613a84e..88b35661 100644 --- a/darwin/multilineentry.m +++ b/darwin/multilineentry.m @@ -151,7 +151,7 @@ static uiMultilineEntry *finishMultilineEntry(BOOL hscroll) [e->tv setRulerVisible:NO]; if (isDarkMode()) { - [e->tv setBackgroundColor:[NSColor controlBackgroundColor]]; + e->tv.backgroundColor = NSColor.textBackgroundColor; } else { [e->tv setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:1.0]]; } @@ -234,6 +234,11 @@ static uiMultilineEntry *finishMultilineEntry(BOOL hscroll) p.VScroll = YES; e->sv = uiprivMkScrollView(&p, &(e->d)); + if (isDarkMode()) { + e->sv.drawsBackground= YES; + e->sv.backgroundColor = NSColor.textBackgroundColor; + } + uiMultilineEntryOnChanged(e, defaultOnChanged, NULL); return e;