litejs / json-lite

Fast non-blocking JSON viewer for Chrome and Firefox
196 stars 17 forks source link

Line numbers using info color as background makes them impossible to read when identical #56

Closed Rassi closed 3 years ago

Rassi commented 3 years ago

Firefox 82.0.1 (64-bit) on Windows 10

I use custom colors, and have set both info color and info hover color to #333. This results in line number background being the same as the text color making it impossible to read:

image

lauriro commented 3 years ago

That's the power of custom colors :)

As you figured out, current implementation reuses info and info hover colors for line numbers and line numbers background. With custom colors it is up to you to find the combination you like most.

There are already many options to configure

I am not sure, would more options do any good.

Rassi commented 3 years ago

Ok, I see that I might have missed out explaining why I use those settings.

I prefer my text views to not change on hover, and drop shadows are also something that I prefer not to have in "plain text". This is why I figured out that I could remove the drop shadow style, and set the hover and info colors to be identical, which gives me what I would like for "static/normal plain text". I then updated Firefox and your extension today, and wondered what the black margin was, until I figured out it was due to line numbers being added.

I might want to try out line numbers, but it is completely fine if you do not want to add more options. I will just disable line numbers then.

Thanks for an otherwise great extension :)

lauriro commented 3 years ago

It was bad decision to reuse info colors, next version is better