From 0544b14172205006a7b9f633edad72cf806743fa Mon Sep 17 00:00:00 2001 From: Austin Condiff Date: Sun, 18 Sep 2022 00:12:40 -0500 Subject: [PATCH 1/3] Added update capabilities to application menu and preferences. --- Sources/CodeEditTextView/STTextViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/CodeEditTextView/STTextViewController.swift b/Sources/CodeEditTextView/STTextViewController.swift index ea89f6915..0c9021a6a 100644 --- a/Sources/CodeEditTextView/STTextViewController.swift +++ b/Sources/CodeEditTextView/STTextViewController.swift @@ -72,7 +72,8 @@ public class STTextViewController: NSViewController, STTextViewDelegate { rulerView = STLineNumberRulerView(textView: textView, scrollView: scrollView) rulerView.backgroundColor = theme.background rulerView.textColor = .systemGray - rulerView.separatorColor = theme.invisibles +// rulerView.separatorColor = theme.invisibles + rulerView.drawSeparator = false rulerView.baselineOffset = baselineOffset scrollView.verticalRulerView = rulerView From 461b25022feeb754e4da1dc497f1512dba38534d Mon Sep 17 00:00:00 2001 From: Austin Condiff Date: Mon, 3 Oct 2022 12:27:22 -0500 Subject: [PATCH 2/3] Improved line number appearance --- Sources/CodeEditTextView/STTextViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/CodeEditTextView/STTextViewController.swift b/Sources/CodeEditTextView/STTextViewController.swift index 0c9021a6a..8cbb55b39 100644 --- a/Sources/CodeEditTextView/STTextViewController.swift +++ b/Sources/CodeEditTextView/STTextViewController.swift @@ -75,6 +75,7 @@ public class STTextViewController: NSViewController, STTextViewDelegate { // rulerView.separatorColor = theme.invisibles rulerView.drawSeparator = false rulerView.baselineOffset = baselineOffset + rulerView.font = NSFont.monospacedDigitSystemFont(ofSize: 9.5, weight: .regular) scrollView.verticalRulerView = rulerView scrollView.rulersVisible = true From b7ff8f63826d0da12915aa51786cf4946b767991 Mon Sep 17 00:00:00 2001 From: Austin Condiff Date: Mon, 3 Oct 2022 13:02:37 -0500 Subject: [PATCH 3/3] Update STTextViewController.swift --- Sources/CodeEditTextView/STTextViewController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/CodeEditTextView/STTextViewController.swift b/Sources/CodeEditTextView/STTextViewController.swift index 8cbb55b39..962baa1ea 100644 --- a/Sources/CodeEditTextView/STTextViewController.swift +++ b/Sources/CodeEditTextView/STTextViewController.swift @@ -72,7 +72,6 @@ public class STTextViewController: NSViewController, STTextViewDelegate { rulerView = STLineNumberRulerView(textView: textView, scrollView: scrollView) rulerView.backgroundColor = theme.background rulerView.textColor = .systemGray -// rulerView.separatorColor = theme.invisibles rulerView.drawSeparator = false rulerView.baselineOffset = baselineOffset rulerView.font = NSFont.monospacedDigitSystemFont(ofSize: 9.5, weight: .regular)