From 4c6eb078465b5667bdbfef9a7ec1e2dcc7ba4f1b Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Mon, 8 Feb 2021 16:25:25 -0500 Subject: [PATCH] Set text color in typingAttributes property --- macOS/PostEditor/MacEditorTextView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macOS/PostEditor/MacEditorTextView.swift b/macOS/PostEditor/MacEditorTextView.swift index ee3d7d7..601052a 100644 --- a/macOS/PostEditor/MacEditorTextView.swift +++ b/macOS/PostEditor/MacEditorTextView.swift @@ -162,7 +162,11 @@ final class CustomTextView: NSView { textView.usesFindPanel = true textView.isAutomaticDashSubstitutionEnabled = false textView.isRichText = false - textView.typingAttributes = [.paragraphStyle: paragraphStyle, .font: font] // H/T Daniel Jalkut + textView.typingAttributes = [ + .paragraphStyle: paragraphStyle, // H/T Daniel Jalkut + .font: font, + .foregroundColor: NSColor.labelColor + ] return textView }()