carbon-app / carbon

:black_heart: Create and share beautiful images of your source code
https://carbon.now.sh
MIT License
34.29k stars 1.9k forks source link

Cursor not visible with dark background #1496

Open Erim32 opened 9 months ago

Erim32 commented 9 months ago

Describe the bug Code editor cursor is not visible when user use a dark background, current version keep black color.

To Reproduce

Expected behavior

How to fix that : Use caret-color css propertie ; https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color

More details : After deep investigation if you create a theme with a white text cursor, after save your new theme, text cursor will became dark.

trana5197 commented 8 months ago

Hi @Erim32, can you please put images because I am able to see the cursor with the black background. Thank you

matheusjardimb commented 1 month ago

@trana5197, the cursor doesn't appear on print screens. It is actually there but barely visible (the cursor is black on top of the darker background)

image

The same doesn't happen when selecting a portion of the text:

image

I guess something like this could be the solution: https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color

BTW, I'm using Chrome v123.0.6312.105 on an Ubuntu.