Repository: eza-community/eza (language: rust)

Issue:
feat: Allow changing color of git-repos symbols  
Looking at ui_styles.rs, it appears to lack provision for changing the --git-repos columns colors.

(Bold yellow is virtually unreadable with the light background I use; I've changed it to orange where I can:)
![image](https://github.com/eza-community/eza/assets/56895621/74d3d0b9-f87b-41f7-ab2a-8763e697ed27)



Discussion / hints:
Gonna take a look into that

Fix patch:
diff --git a/man/eza_colors.5.md b/man/eza_colors.5.md
index a6ac38925..5a56226d7 100644
--- a/man/eza_colors.5.md
+++ b/man/eza_colors.5.md
@@ -210,6 +210,18 @@ LIST OF CODES
 `gc`
 : a conflicted flag in Git
 
+`Gm`
+: main branch of repo
+
+`Go`
+: other branch of repo
+
+`Gc`
+: clean branch of repo
+
+`Gd`
+: dirty branch of repo
+
 `xx`
 : “punctuation”, including many background UI elements
 
diff --git a/src/theme/ui_styles.rs b/src/theme/ui_styles.rs
index 4383bb4fb..bff43ba8e 100644
--- a/src/theme/ui_styles.rs
+++ b/src/theme/ui_styles.rs
@@ -119,10 +119,10 @@ pub struct Git {
 #[rustfmt::skip]
 #[derive(Clone, Copy, Debug, Default, PartialEq)]
 pub struct GitRepo {
-    pub branch_main: Style,
-    pub branch_other: Style,
-    pub git_clean: Style,
-    pub git_dirty: Style,
+    pub branch_main: Style,  //Gm
+    pub branch_other: Style, //Go
+    pub git_clean: Style,    //Gc
+    pub git_dirty: Style,    //Gd
 }
 
 #[derive(Clone, Copy, Debug, Default, PartialEq)]
@@ -241,6 +241,11 @@ impl UiStyles {
             "gi" => self.git.ignored                    = pair.to_style(),
             "gc" => self.git.conflicted                 = pair.to_style(),
 
+            "Gm" => self.git_repo.branch_main           = pair.to_style(),
+            "Go" => self.git_repo.branch_other          = pair.to_style(),
+            "Gc" => self.git_repo.git_clean             = pair.to_style(),
+            "Gd" => self.git_repo.git_dirty             = pair.to_style(),
+
             "xx" => self.punctuation                    = pair.to_style(),
             "da" => self.date                           = pair.to_style(),
             "in" => self.inode                          = pair.to_style(),


Test patch: