fix: fade note text at scroll edges
This commit is contained in:
@@ -119,12 +119,15 @@ final class NotesController: NSViewController, NSTextViewDelegate {
|
||||
editor.textContainer?.widthTracksTextView = true
|
||||
editor.textContainerInset = NSSize(width: 22, height: 8)
|
||||
editor.setAccessibilityLabel("Note editor")
|
||||
let scroll = NSScrollView()
|
||||
let scroll = LauncherScrollView()
|
||||
scroll.documentView = editor
|
||||
scroll.hasVerticalScroller = true
|
||||
scroll.autohidesScrollers = true
|
||||
scroll.drawsBackground = false
|
||||
scroll.scrollerStyle = .overlay
|
||||
scroll.automaticallyAdjustsContentInsets = false
|
||||
scroll.contentInsets = NSEdgeInsets(top: LauncherScrollView.fadeHeight, left: 0,
|
||||
bottom: LauncherScrollView.fadeHeight, right: 0)
|
||||
status.font = .systemFont(ofSize: 12)
|
||||
status.textColor = SunsetPalette.secondaryText
|
||||
status.setAccessibilityLabel("Notes save status")
|
||||
|
||||
Reference in New Issue
Block a user