You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Colors are off (or different?) in the React editor #2511
Here is a comparison using the standard Solarized theme (Atom 0.100.0 on OS X)
Either the colors in the react editor are too saturated, or the ones in the classic editor are too gray:
The inspector show the hex colors to be the same. "Solid" spots are also the same across both screenshots (see the background or the underline character.) So it would seem a difference in the font anti-aliasing mechanism.
I'm not sure which rendering is the right one. I like the classic look better, but it's subjective.
Can you give this another look after revision 99611fa? I accidentally dropped the class that gave the lines an opaque background, which messed up their anti-aliasing on the GPU.
It seems that the colors are ok, but the font is still different in the react editor. Try to open both images and switch then tab. The react editor font seems to be a little bit thinner then the old editor.
And i just noticed that the color picker plugin im using is not working in react. All colors are "black".
The line numbers also have another background color, but thats not so bad :)
Turns out I was totally wrong 😬. I inspected this early in my experimentation with the GPU, and it looked like it was working correctly. What I was expecting to see what the horribly unreadable ghosted looking text that we saw the last time we tried GPU acceleration. Things must have improved since then, so I concluded that what I read about anti-aliasing working with opaque layers was true and it was working. But upon closer inspection at smaller font sizes, there is still a clear difference. 😢
Edit: Actually the difference is really barely perceptible to the point where I'm not sure I'm seeing it.
Personally I think it's close enough that I would be willing to use the GPU version on my lower resolution display, but to maximize text quality we are probably going to have to disable GPU translation for the lines at low resolutions with a media query. We can provide a setting to override. Luckily repaints are cheaper at low resolution, but I am pretty depressed about this.
For example, take this quote from an issue in the Chromium tracker:
In order for subpixel anti-aliasing to stay on for text on a composited layer, the layer must have an opaque background and no transform other than an integer translation
Am I correct in assuming that an integer-valued translate3d is an "integer translation"? Does this not apply on OS X for some reason?
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
philipgiuliani commentedon Jun 5, 2014
I also noticed this, and the font also has another style in the react editor. i like the classic fontstyle much better!
@nathansobo any idea? Also noticed this in the default theme (which i am using).
[-]Colors are off in the React editor[/-][+]Colors are off (or different?) in the React editor[/+]nathansobo commentedon Jun 11, 2014
Can you give this another look after revision 99611fa? I accidentally dropped the class that gave the lines an opaque background, which messed up their anti-aliasing on the GPU.
probablycorey commentedon Jun 18, 2014
@philipgiuliani can you verify if the problems still exist in release 0.104.0?
philipgiuliani commentedon Jun 19, 2014
It seems that the colors are ok, but the font is still different in the react editor. Try to open both images and switch then tab. The react editor font seems to be a little bit thinner then the old editor.
And i just noticed that the color picker plugin im using is not working in react. All colors are "black".
The line numbers also have another background color, but thats not so bad :)
Sometimes the tabs have a very blurred font.
Default:

React:

nathansobo commentedon Jun 19, 2014
I'll investigate this on a cinema display. I had thought giving the lines div an opaque background was the solution, but now I'm starting to worry.
nathansobo commentedon Jun 19, 2014
Turns out I was totally wrong 😬. I inspected this early in my experimentation with the GPU, and it looked like it was working correctly. What I was expecting to see what the horribly unreadable ghosted looking text that we saw the last time we tried GPU acceleration. Things must have improved since then, so I concluded that what I read about anti-aliasing working with opaque layers was true and it was working. But upon closer inspection at smaller font sizes, there is still a clear difference. 😢
Edit: Actually the difference is really barely perceptible to the point where I'm not sure I'm seeing it.
Personally I think it's close enough that I would be willing to use the GPU version on my lower resolution display, but to maximize text quality we are probably going to have to disable GPU translation for the lines at low resolutions with a media query. We can provide a setting to override. Luckily repaints are cheaper at low resolution, but I am pretty depressed about this.
nathansobo commentedon Jun 19, 2014
For example, take this quote from an issue in the Chromium tracker:
Am I correct in assuming that an integer-valued
translate3dis an "integer translation"? Does this not apply on OS X for some reason?lock commentedon Jan 26, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!