CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
504 stars 74 forks source link

Line highlight improvements when not using theme background #181

Closed austincondiff closed 1 year ago

austincondiff commented 1 year ago

Description

Not using theme highlight color when not using theme background. Instead, we are using system colors to highlight the current line.

Checklist

Screenshots

When using the theme background...

image

When not using the theme background...

Before

image

After

image
austincondiff commented 1 year ago

Any suggestions for how I can resolve that SwiftLint error?

thecoolwinter commented 1 year ago

As a quick fix for the lint error for now you could move the attributesFor method to the STTextViewController+Highlighter file.

austincondiff commented 1 year ago

@thecoolwinter thanks, that works!