atom-color-highlight icon indicating copy to clipboard operation
atom-color-highlight copied to clipboard

Cannot see the double quote mark when the text is highlighted.

Open stevemao opened this issue 10 years ago • 4 comments

screen shot 2015-04-21 at 12 05 59 pm

See the double quote after red is very hard to see. Maybe make the highlighted area a bit smaller for html?

stevemao avatar Apr 21 '15 02:04 stevemao

In fact, it would be better if the highlighted area is below other texts.

stevemao avatar Apr 21 '15 02:04 stevemao

For the double quote, you can prevent that by changing the styles of the markers to remove the margins and paddings.

For the marker z-index, putting it behind text make it impossible to use a contrast color for the text, so if the marker color is close to the editor text color it becomes unreadable.

abe33 avatar Apr 21 '15 08:04 abe33

Can the highlighted texts have the highest z-index, then the markers, and the rest texts have the lowest?

It might be handy if you expose settings of the styles in Atom?

stevemao avatar Apr 21 '15 08:04 stevemao

Can the highlighted texts have the highest z-index, then the markers, and the rest texts have the lowest?

Unfortunately no, by doing that the contrast text would overlay above the editor's text, resulting in a thin border around the text as the antialiasing may be render differently whether the text is white or black.

In the next version (namely abe33/atom-pigments) there's a setting for the type of markers (background, outline, underline or dots). But as long as there's no API in atom to decorate a part of the text so that one can change the text color at a specific place without creating an overlay I won't be able to use the decoration API.

abe33 avatar Apr 21 '15 10:04 abe33