Styling the bookmark


#1

I’m using the ‘bookmarks’ package (version 0.44.4) for setting bookmarks.

Is there a way to set the foreground and/or background color of the bookmarks indicator, maybe using a suitable definition in styles.less?

I checked the documentation for this package, but it does not document any way to do it.


#2

What about the styles.less file for the package? That contains clues about which selectors you want.


#3

The clue helped. I copied from the file you suggested the relevant part, and put it like this in my own styles.less:

atom-text-editor {
  .gutter .line-number.bookmarked .icon-right {
    visibility: visible;
    &:before {
      color: red;
      background_color: green;
    }
  }
}

This indeed yields a red bookmark on green background. Thanks a lot.