Merge pull request #176 from writeas/adapt-editor-color-to-dark-mode

Set text color in typingAttributes property
This commit is contained in:
Angelo Stavrow 2021-02-11 10:32:26 -05:00 committed by GitHub
commit 76f3c5b518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}()