jesseduffield / jesseduffield/lazygit

How to remove UI colors

Open
#5,400 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

Hi!

Thanks for developing lazygit! It's been a great experience with it and I definitely recommend it to try.

As odd as it sounds I want to remove lazygit colors to improve my focus. Recently I read an article about not using syntax highlighting which revealed my gaps on reading comprehension. You can read this awesome [article](https://www.linusakesson.net/programming/syntaxhighlighting/) to get the reason behind not using that feature in code editors.

Now, I removed all colors on git with this nix expression:

```
{ lib, pkgs, ... }:
{
programs.git = {
enable = true;
settings = {
user.name = "myuser";
user.email = "mymail@myemail.com";
init.defaultBranch = "main";
credential."https://gitlab.com".helper = "!${lib.getExe pkgs.glab} auth git-credential";
merge.strategy = "rebase";
pull.rebase = true;
color.diff = false;
color.advice = false;
color.branch = false;
color.grep = false;
color.interactive = false;
color.pager = false;
color.push = false;
color.remote = false;
color.showBranch = false;
color.status = false;
color.transport = false;
color.ui = false;
};
};
}
```
I could effectively remove colors for git but lazygit is still intact in spite of changing its configuration like I did in this nix expression:

```
{
activeBorderColor = [ "default" ];
inactiveBorderColor = [ "black" ];
searchingActiveBorderColor = [ "default" ];
optionsTextColor = [ "default" ];
selectedLineBgColor = [ "default" ];
inactiveViewSelectedLineBgColor = [ "default" ];
cherryPickedCommitFgColor = [ "default" ];
cherryPickedCommitBgColor = [ "default" ];
markedBaseCommitFgColor = [ "default" ];
markedBaseCommitBgColor = [ "default" ];
unstagedChangesColor = [ "default" ];
}
```
As you can see on this screenshot, lazygit keeps putting colors to its interface and I'd love to remove them

Image

Is there a way to do that?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.