atom-minimap / minimap-git-diff

A minimap binding for the atom git-diff package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Control how strong the diffs are shown in the minimap

Micka33 opened this issue · comments

It could be nice to be able to set how strong the diff colors appears on the minimap.

As you can see in the screenshot below, it's pretty hard to see the code inside the diff.
I guess it will depend on the theme used, so being able to set a value between 0%-100% to adjust it would be nice.

screen shot 2015-09-18 at 09 55 06

Hi @Micka33, I forgot to put a section for that in the README, but you can redefine the colors for the minimap-git-diff markers from your user stylesheet. Currently, the colors as defined as below:

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

  .git-line-added {
    background: fadeOut(@syntax-color-added, 40%);
  }

  .git-line-removed {
    background: fadeOut(@syntax-color-removed, 30%);
  }
}

You can just tweak that by increasing the fading ratio.

Nice !
The next step might be to add it to the user interface ;)

Actually the user stylesheet is a much more richer solution, you can use all less color functions and theme variables to compute the finall colors, using a setting or building an UI for that would restrict the possibilities.