atom-minimap / minimap-git-diff

A minimap binding for the atom git-diff package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theming?

Strae opened this issue · comments

Is possible to theme (change appareance)?

My goal is to reduce the opacity of the green and yellow lines (im using a couple of minimap extensions and need to have alle the info clearly visible)

I've seen the DOM element is a canvas, so I think that application stylesheets cant help this time.

commented

you can modify the minimap-git-diff.less under X:\Users\YourName\.atom\packages\minimap-git-diff\stylesfolder, in style .git-line-modified

The styles are evaluated at runtime, directly from the DOM, so you can modify that from your user stylesheet:

@import "syntax-variables";

.minimap {
  .line {
    .git-line-modified {
      background: fadeOut(@syntax-color-modified, 80%);
    }
  }
}