fix: fade note text at scroll edges

This commit is contained in:
2026-10-19 21:26:00 +02:00
parent c22881b9d1
commit 931eb0ffc3
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -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")