Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Line Number Appearance #71

Merged
merged 5 commits into from
Oct 3, 2022
Merged

Improved Line Number Appearance #71

merged 5 commits into from
Oct 3, 2022

Conversation

austincondiff
Copy link
Collaborator

This PR improves the overall appearance of the line numbers in the gutter of the editor.

Related Issue

Before
image

Target
image

After
image

It is not perfect though, it needs decreased tracking and narrower character width. This is the code I have added to produce this:

rulerView.font = NSFont.monospacedDigitSystemFont(ofSize: 9.5, weight: .regular)

It also uses character variants here such as the open "4" (you'll see in the target it is open, and in my version it is closed).

If anyone knows of a way to improve this let me know, otherwise we can merge this for the time being until we find a better solution.

lukepistrol
lukepistrol previously approved these changes Oct 3, 2022
Copy link
Member

@lukepistrol lukepistrol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lukepistrol lukepistrol added enhancement New feature or request UI labels Oct 3, 2022
@lukepistrol lukepistrol merged commit f2b8764 into CodeEditApp:main Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants