Skip to content

Address disappearing lines in dark mode #1050

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

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

lucasderraugh
Copy link
Collaborator

See issue #1042 (Drawing in dark mode broke in macOS 15.2). Originally we used normal blends modes in dark mode as it looked better and was easy to see the overlaps. The bug that manifests with the normal blend mode is some lines don't draw or if they do they draw almost like narrow triangles. Given that the drawing code is just drawing lines with widths, I'm not sure how this can occur. Moreover, I'm not sure why changing the blend mode would have any effect in them appearing or not. Using multiply unfortunately changes the appearance of intersecting lines in dark mode to look less ideal. I should probably file a feedback with Apple (if I do, I should add the FB# here).

I'm not 100% sure that the drawing code is bug free, but this code has worked fine unchanged for years. If I (or anyone else) ever gets time to debug this, I'd love to better understand why changing the blend mode does anything (other than affect the blend mode).

See issue #1042 (Drawing in dark mode broke in macOS 15.2).
Originally we used normal blends modes in dark mode as it looked better and was easy to see the overlaps.
The bug that manifests with the normal blend mode is some lines don't draw or if they do they draw almost like narrow triangles.
Given that the drawing code is just drawing lines with widths, I'm not sure how this can occur.
Moreover, I'm not sure why changing the blend mode would have any effect in them appearing or not.
Using multiply unfortunately changes the appearance of intersecting lines in dark mode to look less ideal.
I should probably file a feedback with Apple (if I do, I should add the FB# here).

I'm not 100% sure that the drawing code is bug free, but this code has worked fine unchanged for years.
If I (or anyone else) ever gets time to debug this, I'd love to better understand why changing the blend mode does anything (other than affect the blend mode).
@lucasderraugh lucasderraugh merged commit 9be3127 into master Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant