Skip to content

Commit

Permalink
Set scrollView background color (CodeEditApp#113)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
thecoolwinter authored Jan 12, 2023
2 parents 0eeb89c + ecb10e7 commit cc6d9d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/CodeEditTextView/STTextViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
rulerView?.separatorColor = theme.invisibles
rulerView?.baselineOffset = baselineOffset

(view as? NSScrollView)?.backgroundColor = theme.background
(view as? NSScrollView)?.contentView.contentInsets.bottom = bottomContentInsets

setStandardAttributes()
Expand Down

0 comments on commit cc6d9d5

Please sign in to comment.