Skip to content

Commit

Permalink
Merge branch 'master' of github.com:glushchenko/fsnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Jan 11, 2018
2 parents 8b2ec18 + 36a8273 commit 6a7ef88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FSNotes/EditTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class EditTextView: NSTextView {

override func drawBackground(in rect: NSRect) {
backgroundColor = UserDefaultsManagement.bgColor

let isDarkBG = backgroundColor.brightnessComponent < 0.5
insertionPointColor = isDarkBG ? NSColor.white : NSColor.black

super.drawBackground(in: rect)
}

Expand Down

0 comments on commit 6a7ef88

Please sign in to comment.