Use always system appearance in editor view (close #947)

This commit is contained in:
1024jp 2019-06-13 17:04:33 +09:00
parent fb9899cf11
commit 4fe29f0c4f
2 changed files with 2 additions and 5 deletions

View File

@ -13,6 +13,7 @@ Change Log
### Improvements
- Apply the change of “show other invisible characters” option immediately to the editors.
- Use the system appearance in the input candidate window even when the theme has a dark background color.
- Give feedback about the search result in VoiceOver.
- Improve the behavior of Opt+Arrow shortcut series to stop the by punctuation marks, such as `.` and `:`.
- Optimize the performance of finding the matching brace to highlight.

View File

@ -1306,11 +1306,7 @@ final class EditorTextView: NSTextView, Themable, CurrentLineHighlighting, Multi
}
// set scroller color considering background color
if #available(macOS 10.14, *) {
self.enclosingScrollView?.appearance = NSAppearance(named: theme.isDarkTheme ? .darkAqua : .aqua)
} else {
self.enclosingScrollView?.scrollerKnobStyle = theme.isDarkTheme ? .light : .default
}
self.enclosingScrollView?.scrollerKnobStyle = theme.isDarkTheme ? .light : .default
self.setNeedsDisplay(self.visibleRect, avoidAdditionalLayout: true)
}