Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ - (void)setDefaultTextAttributes:(NSDictionary<NSAttributedStringKey, id> *)defa
attributes:[self defaultTextAttributes]]];

self.font = [[self defaultTextAttributes] objectForKey:NSFontAttributeName];

// Plain text set later (`text`) and a secure field's bullets are drawn in textColor, not in the
// attributed text's color, so it has to follow the style too.
NSColor *textColor = [[self defaultTextAttributes] objectForKey:NSForegroundColorAttributeName];
if (textColor != nil) {
self.textColor = textColor;
}
#endif // macOS]
}

Expand Down