mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Set text color in typingAttributes property
This commit is contained in:
parent
6cc2194b26
commit
4c6eb07846
@ -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