Commit 91b8c405499bead2b9a0259bbeaf0e90381c8673

Stefan Sperling 2020-01-25T11:41:24

tweak default colors for directories and symlinks in 'tog tree'

diff --git a/tog/tog.1 b/tog/tog.1
index 8bb9658..eaedd62 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -342,12 +342,12 @@ is used.
 .It Ev TOG_COLOR_TREE_SYMLINK
 The color used to mark up symbolic link tree entries.
 If not set, the default value
-.Dq cyan
+.Dq magenta
 is used.
 .It Ev TOG_COLOR_TREE_DIRECTORY
 The color used to mark up directory tree entries.
 If not set, the default value
-.Dq blue
+.Dq cyan
 is used.
 .It Ev TOG_COLOR_TREE_EXECUTABLE
 The color used to mark up executable file tree entries.
diff --git a/tog/tog.c b/tog/tog.c
index 6872cd3..77eb088 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -194,9 +194,9 @@ default_color_value(const char *envvar)
 	if (strcmp(envvar, "TOG_COLOR_TREE_SUBMODULE") == 0)
 		return COLOR_MAGENTA;
 	if (strcmp(envvar, "TOG_COLOR_TREE_SYMLINK") == 0)
-		return COLOR_CYAN;
+		return COLOR_MAGENTA;
 	if (strcmp(envvar, "TOG_COLOR_TREE_DIRECTORY") == 0)
-		return COLOR_BLUE;
+		return COLOR_CYAN;
 	if (strcmp(envvar, "TOG_COLOR_TREE_EXECUTABLE") == 0)
 		return COLOR_GREEN;
 	if (strcmp(envvar, "TOG_COLOR_COMMIT") == 0)