Where is the active line background color?


#1

I know where to set the active line background color of the gutter, but not of the editing window. In this screenshot, it’s a tiny bit darker than the editor bg.


#2

Try this:

atom-text-editor::shadow .lines .line.cursor-line {
  background-color: /* color */;
}

#3

I’ve been using

atom-text-editor, :host {
    background-color: @syntax-background-color;
    color: @syntax-text-color;
   ..etc..

for the selector; am I supposed to be using atom-text-editor::shadow?


#5

Are you working on a theme?


#6

yes, a syntax theme.


#7

The docs say that you should be using the atom-text-editor, :host selector within a syntax theme. You don’t seem to have a reference to the .cursor-line class. Does this work?

atom-text-editor, :host {
  .lines .line.cursor-line {
    background-color: @syntax-background-color;
    color: @syntax-text-color;
  }
}

#8

Yup. Thanks you for the info.