From 001f201221d944d919e316b191824f936752990a Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 3 Nov 2026 10:05:27 +0100 Subject: [PATCH] pinwheel: Match tig colors to theme and show added lines in green --- hosts/pinwheel/modules/colors/default.nix | 4 +-- .../modules/emacs/doom-submarine-theme.el | 8 ++++- hosts/pinwheel/modules/git/default.nix | 30 +++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/hosts/pinwheel/modules/colors/default.nix b/hosts/pinwheel/modules/colors/default.nix index c82c693..c94ac2c 100644 --- a/hosts/pinwheel/modules/colors/default.nix +++ b/hosts/pinwheel/modules/colors/default.nix @@ -21,7 +21,7 @@ in regular = [ "181818" # black "e0473c" # red - "8fa876" # green + "7fb35a" # green "b8904a" # yellow "8a8a8a" # blue "a05048" # magenta @@ -32,7 +32,7 @@ in bright = [ "5a5a5a" # black "ff5f52" # red - "a8c08a" # green + "9fd078" # green "d8b070" # yellow "aaaaaa" # blue "c06058" # magenta diff --git a/hosts/pinwheel/modules/emacs/doom-submarine-theme.el b/hosts/pinwheel/modules/emacs/doom-submarine-theme.el index 5eb5235..d56c8a0 100644 --- a/hosts/pinwheel/modules/emacs/doom-submarine-theme.el +++ b/hosts/pinwheel/modules/emacs/doom-submarine-theme.el @@ -29,6 +29,7 @@ (violet '("#9a9a9a" nil nil)) (cyan '("#bebebe" nil nil)) (dark-cyan '("#8a8a8a" nil nil)) + (added '("#7fb35a" nil nil)) (highlight orange) (vertical-bar base3) @@ -50,7 +51,7 @@ (warning red) (success green) (vc-modified base6) - (vc-added green) + (vc-added added) (vc-deleted red) (modeline-fg fg) @@ -61,6 +62,11 @@ (modeline-bg-inactive-l bg-alt)) (((custom-group-subtitle &override) :foreground orange) + ((diff-added &override) :foreground added) + ((diff-indicator-added &override) :foreground added) + ((magit-diff-added &override) :foreground added) + ((magit-diff-added-highlight &override) :foreground added) + ((magit-diffstat-added &override) :foreground added) ((hl-todo &override) :foreground orange) ((magit-blame-date &override) :foreground orange) ((markdown-list-face &override) :foreground orange) diff --git a/hosts/pinwheel/modules/git/default.nix b/hosts/pinwheel/modules/git/default.nix index 94feecf..ebc707d 100644 --- a/hosts/pinwheel/modules/git/default.nix +++ b/hosts/pinwheel/modules/git/default.nix @@ -85,6 +85,36 @@ in home.file.".tigrc".text = '' set main-view-line-number = yes set main-view-line-number-interval = 1 + + color default default default + color cursor color0 yellow bold + color search-result color0 yellow + color title-focus white color8 bold + color title-blur color8 default + color status white default + color delimiter color8 default + color line-number color8 default + + color id yellow default + color date color8 default + color author cyan default + color mode cyan default + color graph-commit yellow default + color main-commit default default + color main-head yellow default bold + color main-ref yellow default + color main-local-tag color11 default + color main-tag color11 default bold + color main-remote color8 default + color main-tracked yellow default bold + color main-replace cyan default + + color diff-header color15 default bold + color diff-index color8 default + color diff-chunk cyan default + color diff-add green default + color diff-del red default + color diff-stat cyan default ''; };