one-dark-syntax icon indicating copy to clipboard operation
one-dark-syntax copied to clipboard

Too Much Red Syntax Highlighting?

Open lukeschunk opened this issue 10 years ago • 11 comments

I opened Atom today and noticed that my page had a LOT of red on it. I know this wasn't how it was before. For example, in the screenshot, this.props.isLoading should not be all red. I believe only the this was red before?

Any thoughts? screen shot 2016-01-14 at 2 09 05 pm screen shot 2016-01-14 at 2 10 31 pm

lukeschunk avatar Jan 14 '16 21:01 lukeschunk

Closing in favor of #54, atom/language-javascript#263, atom/language-javascript#258, and atom/atom#9562.

winstliu avatar Jan 14 '16 21:01 winstliu

Fair, but any idea why this would have happened suddenly? I didn't even update today.

lukeschunk avatar Jan 14 '16 21:01 lukeschunk

@lukeschunk Atom 1.4.0 was released yesterday, containing many language-javascript changes. Your Atom probably automatically updated when you closed it.

winstliu avatar Jan 14 '16 22:01 winstliu

ahh thank you so much that must have been it @50Wliu

lukeschunk avatar Jan 15 '16 00:01 lukeschunk

Hi @lukeschunk , I changed these classes to have the old styles, maybe it help you

atom-text-editor::shadow span.meta.method-call.js > span.variable.other.object.js { color: #abb2bf; } atom-text-editor::shadow span.meta.method-call.js > span.entity.name.function.js { color: #abb2bf; }

atom-text-editor::shadow span.meta.method-call.js > span.variable.other.property.js { color: #abb2bf; }

atom-text-editor::shadow span.source.js > span.variable.other.property.js { color: #abb2bf; }

RiCoTeRoX avatar Jan 16 '16 18:01 RiCoTeRoX

Revert to version to 0.100.0 or add this styles:

@import 'colors';

atom-text-editor::shadow {
    .variable.other.object.js { color: @mono-1; }
    .variable.other.property.js { color: @mono-1; }
    .meta.method-call.js {
        > .entity.name.function.js { color: @mono-1; }
    }
    .meta.function-call.js {
        > .entity.name.function.js { color: @mono-1; }
    }
}

marcelombc avatar Jan 18 '16 19:01 marcelombc

@RiCoTeRoX, @marcelombc to revert changes properly add this:

@import "syntax-variables";

// Replace `.theme-one-dark-syntax` with `.theme-{syntax theme name}`
.theme-one-dark-syntax atom-text-editor::shadow .source.js {
  .variable.other.property, .variable.other.object {
    color: @syntax-text-color;
  }

  .meta.function-call, .meta.method-call {
    & > .entity.name.function {
      color: @syntax-text-color;
    }
  }
}

MaximSokolov avatar Jan 18 '16 19:01 MaximSokolov

@MaximSokolov thank you.

marcelombc avatar Jan 18 '16 19:01 marcelombc

:+1: awesome thanks everyone

lukeschunk avatar Jan 18 '16 19:01 lukeschunk

thank you @MaximSokolov !

RiCoTeRoX avatar Jan 18 '16 19:01 RiCoTeRoX

@MaximSokolov thank you~

still love the old one...

preschian avatar Jan 19 '16 03:01 preschian