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

increase contrast of line numbers #1000

Merged

Conversation

babaissarkar
Copy link
Contributor

@babaissarkar babaissarkar commented Mar 23, 2025

Resolves #994

Minerals

Screenshot from 2025-03-23 23-00-15 Screenshot from 2025-03-23 23-00-09 Screenshot from 2025-03-23 23-00-04 Screenshot from 2025-03-23 22-59-58 Screenshot from 2025-03-23 22-59-53 Screenshot from 2025-03-23 22-59-48 Screenshot from 2025-03-23 22-59-44 Screenshot from 2025-03-23 22-59-39 Screenshot from 2025-03-23 22-59-34 Screenshot from 2025-03-23 22-59-29 Screenshot from 2025-03-23 22-59-24 Screenshot from 2025-03-23 22-59-18 Screenshot from 2025-03-23 22-59-13 Screenshot from 2025-03-23 22-59-07 Screenshot from 2025-03-23 22-59-03 Screenshot from 2025-03-23 22-58-58

Alloys

Screenshot from 2025-03-24 22-02-45 Screenshot from 2025-03-24 22-02-37 Screenshot from 2025-03-24 22-02-30 Screenshot from 2025-03-24 22-02-21 Screenshot from 2025-03-24 22-02-16 Screenshot from 2025-03-24 22-02-07 Screenshot from 2025-03-24 22-02-00 Screenshot from 2025-03-24 22-01-52 Screenshot from 2025-03-24 22-01-45 Screenshot from 2025-03-24 22-01-39 Screenshot from 2025-03-24 22-01-31 Screenshot from 2025-03-24 22-01-24 Screenshot from 2025-03-24 22-01-17 Screenshot from 2025-03-24 22-01-09 Screenshot from 2025-03-24 22-01-00 Screenshot from 2025-03-24 22-00-53

@babaissarkar babaissarkar force-pushed the theme-line-numbers-contrast-fix branch from c5bece1 to 1707cde Compare March 24, 2025 16:33
@babaissarkar babaissarkar force-pushed the theme-line-numbers-contrast-fix branch from 1707cde to 165dab6 Compare March 24, 2025 16:37
@babaissarkar babaissarkar marked this pull request as ready for review March 24, 2025 16:37
@babaissarkar babaissarkar changed the title increase contrast of line numbers (Minerals) increase contrast of line numbers Mar 24, 2025
@Stefterv Stefterv added this to the 4.4.2 milestone Mar 24, 2025
@Stefterv Stefterv requested a review from SableRaf March 24, 2025 16:42
@SableRaf
Copy link
Collaborator

I've tested on Windows 10 and macOS 13.4 and it looks good to me!

The only issue I can see with this approach is that—with the larger numbers—line numbers over 9999 overflow on the left.

Image

The current version can fit more numbers in the gutter.

Image

That said, I doubt this will affect most users and this should not be a blocker for this PR. Just something to keep in mind for later (cc @Stefterv).

@Stefterv
Copy link
Collaborator

@SableRaf That's some high-level QA right there ❤️

@babaissarkar Thank you!

@Stefterv Stefterv merged commit 6ccf5b9 into processing:main Mar 24, 2025
12 checks passed
@SableRaf
Copy link
Collaborator

@all-contributors please add @babaissarkar for Code and Accessibility

Copy link
Contributor

@SableRaf

This project's configuration file has malformed JSON: .all-contributorsrc. Error:: Unexpected token ] in JSON at position 39663

@SableRaf
Copy link
Collaborator

@all-contributors please add @babaissarkar for Code and Accessibility

Copy link
Contributor

@SableRaf

I've put up a pull request to add @babaissarkar! 🎉

@SableRaf
Copy link
Collaborator

SableRaf commented Mar 29, 2025

Hi @babaissarkar and @Stefterv 👋

I just noticed that at smaller font sizes the line numbers start colliding. Note: This was already the case in 4.3.4 but it was less pronounced.

image

I don't know whether we need to support font sizes that small. Maybe it's reasonable to limit how small the font can get in the editor? Otherwise we'd need a way to adjust the size of the line numbers for smaller font sizes in the editor.

image

@babaissarkar babaissarkar deleted the theme-line-numbers-contrast-fix branch March 30, 2025 17:21
@babaissarkar
Copy link
Contributor Author

The font size for line numbers could be adaptive: it changes in proportion to the editor font, though the parent issue may crop up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Line numbers need more contrast
3 participants