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

✨ Line highlight should appear behind ruler #128

Closed
austincondiff opened this issue Jan 25, 2023 · 2 comments · Fixed by #163
Closed

✨ Line highlight should appear behind ruler #128

austincondiff opened this issue Jan 25, 2023 · 2 comments · Fixed by #163
Assignees

Comments

@austincondiff
Copy link
Collaborator

The highlight should extend into the ruler rather than start after it ends.

image

Left: Xcode | Right: CodeEdit

This may or may not require #127.

@austincondiff
Copy link
Collaborator Author

austincondiff commented Feb 16, 2023

Note: this may need to be a separate background behind the line number that lines up with the background behind the code on the right of it.

I say this because what would happen if there was horizontal overflow and the user scrolls to the right. The code would need to go underneath the fixed ruler view and the ruler view would need it's own active line indicator for that to be possible.

@austincondiff austincondiff moved this from 🆕 New to 📋 Todo in CodeEdit Project Feb 17, 2023
@austincondiff austincondiff moved this from 📋 Todo to 🏃‍♂️ In Progress in CodeEdit Project Mar 16, 2023
@Eliulm
Copy link
Contributor

Eliulm commented Mar 16, 2023

I would like to work on this issue

thecoolwinter pushed a commit that referenced this issue Mar 16, 2023
<!--- IMPORTANT: If this PR addresses multiple unrelated issues, it will
be closed until separated. -->

### Description

1. Add 20 pixels of inset to the left of the ruler and 8 pixels of inset
to the right of the ruler. I tried to match it as close as possible to
Xcode.
2. Set the background color of the highlight ruler line to the same
color as the highlighted line in the textView.

### Related Issues

<!--- REQUIRED: Tag all related issues (e.g. * #123) -->
<!--- If this PR resolves the issue please specify (e.g. * closes #123)
-->
<!--- If this PR addresses multiple issues, these issues must be related
to one other -->

* closes #156
* closes #128

### Checklist

<!--- Add things that are not yet implemented above -->

- [x] I read and understood the [contributing
guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md)
as well as the [code of
conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md)
- [x] The issues this PR addresses are related to each other
- [x] My changes generate no new warnings
- [x] My code builds and runs on my machine
- [x] My changes are all related to the related issue above
- [x] I documented my code

### Screenshots

<!--- REQUIRED: if issue is UI related -->

<img width="765" alt="Screenshot 2023-03-16 at 19 05 59"
src="https://user-images.githubusercontent.com/82230675/225717006-40530a7b-7864-404b-8d14-5307f6f83bdb.png">


<!--- IMPORTANT: Fill out all required fields. Otherwise we might close
this PR temporarily -->
@github-project-automation github-project-automation bot moved this from 🏃‍♂️ In Progress to 🏁 Complete in CodeEdit Project Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏁 Complete
Development

Successfully merging a pull request may close this issue.

2 participants