mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Merge pull request #176 from writeas/adapt-editor-color-to-dark-mode
Set text color in typingAttributes property
This commit is contained in:
commit
76f3c5b518
@ -162,7 +162,11 @@ final class CustomTextView: NSView {
|
|||||||
textView.usesFindPanel = true
|
textView.usesFindPanel = true
|
||||||
textView.isAutomaticDashSubstitutionEnabled = false
|
textView.isAutomaticDashSubstitutionEnabled = false
|
||||||
textView.isRichText = 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
|
return textView
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user