zed icon indicating copy to clipboard operation
zed copied to clipboard

Wrap guides are too thin under X11 with 1.5 scale factor

Open FreddieWitherden opened this issue 1 year ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

In settings.json put:

  "wrap_guides": [80],

which under X11 with a 1.5 scale factor renders a line which is extremely thin (see attached screenshot). Note, however, that the indentation lines on the left hand side are fine (1px for the wrap guides and 2px for the indentation lines). This issue does not occur on macOS.

Environment

Zed: v0.158.1 (Zed) OS: Linux X11 gentoo 2.15 Memory: 62.4 GiB Architecture: x86_64 GPU: Intel(R) Arc(tm) A770M Graphics (DG2) || Intel open-source Mesa driver || Mesa 24.2.5

If applicable, add mockups / screenshots to help explain present your vision of the feature

zed

If applicable, attach your Zed.log file to this issue.

Zed.log

FreddieWitherden avatar Oct 27 '24 14:10 FreddieWitherden

Can confirm on my end as well, but Wayland with 1x scale factor. The line becomes a lot more visible if I set soft_wrap to preferred_line_length. Otherwise, it's basically invisible.

I just had to set up a theme override to make it darker:

"experimental.theme_overrides": {
  "editor.wrap_guide": "#3333"
}

andreyrd avatar Nov 04 '24 23:11 andreyrd

I don't think this is a design issue (it should just render the line correctly!) it may be an issue with gpui/a linux specific case or the blade render.

iamnbutler avatar Jan 30 '25 17:01 iamnbutler

I just had to set up a theme override to make it darker:

The problem is that the same override applies on both light and dark variants. Indeed I couldn't see the lines on "One Light" theme, and slightly on "One Dark".

I just changed the themes.

yajo avatar May 28 '25 10:05 yajo

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Oct 01 '25 07:10 github-actions[bot]

Am able to reproduce as described with the current version.

FreddieWitherden avatar Oct 01 '25 10:10 FreddieWitherden

As a guess, https://github.com/zed-industries/zed/pull/38967 could help with this as helped with https://github.com/zed-industries/zed/issues/22711

Zed Preview 0.207 (will be released later today) should contain the change — would be interesting to see if it really helps.

SomeoneToIgnore avatar Oct 01 '25 11:10 SomeoneToIgnore

Confirmed as still present in 0.207.

FreddieWitherden avatar Oct 12 '25 19:10 FreddieWitherden