Skip to content

Commit cc6d9d5

Browse files
Set scrollView background color (#113)
# Description Updates the scroll view's background color to the theme's background color to avoid ugly edges on scroll. **Before** https://user-images.githubusercontent.com/35942988/211999177-5a11f56b-3cfd-44d2-95f5-b866ae276e98.mov **After** https://user-images.githubusercontent.com/35942988/211999157-b3926ec5-0115-4545-9b4a-728f7f79771f.mov # Related Issues N/A
2 parents 0eeb89c + ecb10e7 commit cc6d9d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/CodeEditTextView/STTextViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
211211
rulerView?.separatorColor = theme.invisibles
212212
rulerView?.baselineOffset = baselineOffset
213213

214+
(view as? NSScrollView)?.backgroundColor = theme.background
214215
(view as? NSScrollView)?.contentView.contentInsets.bottom = bottomContentInsets
215216

216217
setStandardAttributes()

0 commit comments

Comments
 (0)