Skip to content

How to remove UI colors #5400

@wavesinaroom

Description

@wavesinaroom

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 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions