Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@tobia

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:

colors

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.

Activity

  1. philipgiuliani commented on Jun 5, 2014

    @philipgiuliani
    Contributor

    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).

  2. changed the title [-]Colors are off in the React editor[/-] [+]Colors are off (or different?) in the React editor[/+] on Jun 5, 2014
  3. nathansobo commented on Jun 11, 2014

    @nathansobo
    Contributor

    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.

  4. probablycorey commented on Jun 18, 2014

    @probablycorey

    @philipgiuliani can you verify if the problems still exist in release 0.104.0?

  5. philipgiuliani commented on Jun 19, 2014

    @philipgiuliani
    Contributor

    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:
    default

    React:
    react

  6. nathansobo commented on Jun 19, 2014

    @nathansobo
    Contributor

    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.

  7. nathansobo commented on Jun 19, 2014

    @nathansobo
    Contributor

    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.

  8. nathansobo commented on Jun 19, 2014

    @nathansobo
    Contributor

    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?

  9. lock commented on Jan 26, 2019

    @lock

    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!

  10. locked as resolved and limited conversation to collaborators on Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions