hax / atom-elastic-tabstops

Elastic Tabstops for Atom
MIT License
84 stars 1 forks source link

Style should be customizable #4

Closed sapjax closed 8 years ago

sapjax commented 8 years ago

Your style set box-shadow to hard-tab:

box-shadow: inset -1px 0;

The color of box-shadow is inherit from <atom-text-editor>'s color which was setted by specifical theme.

In my atom editor it look like this: 2 pic Then, I override the style of elastic-tabstops.less:

atom-text-editor::shadow {
    span.hard-tab {
         box-shadow : inset -1px 0;
         display    : inline-block;

         &:not(.indent-guide) {
            color: rgba(255, 255, 255, .3);
         }

        &.indent-guide:first-child {
             box-shadow : inset 1px 0, inset -1px 0;
        }
    }
}

It works well, but I think there should be a text-input for user to custom the color of box-shadow.

hax commented 8 years ago

Seems weird... Which theme are you using?

hax commented 8 years ago

Oh, I see.

hax commented 8 years ago

This bug is related to showInvisibles option. A new version has been released, and it should also fix the performance depression when showInvisibles is off.

sapjax commented 8 years ago

Thanks, it's well now :v: .