about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-20 02:53:56 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-20 02:58:31 -0800
commit75bb5e4ab1c1b3d8d677628813dd13b7061209cd (patch)
tree64879bc47ef3c8832032eb4cfc81505d3160d7fe /tools
parent9ed9188a39dad1b5df6fb6aff9cead41a06b0ab1 (diff)
downloadmu-75bb5e4ab1c1b3d8d677628813dd13b7061209cd.tar.gz
5910
Trace browser: Don't let the background color get too light, and cycle
back to darker shades so I'm not squinting at low depths.
Diffstat (limited to 'tools')
-rw-r--r--tools/browse_trace.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/browse_trace.cc b/tools/browse_trace.cc
index 73f40a62..10a25076 100644
--- a/tools/browse_trace.cc
+++ b/tools/browse_trace.cc
@@ -201,8 +201,7 @@ int bg_color(int depth, int trace_index, int screen_row) {
   if (depth == 0) return /*red*/1;
   if (depth == 1) return /*orange*/166;
   // start at black, gradually lighten at deeper levels
-  if (depth > 10) return TB_BLACK + 16;
-  return TB_BLACK + (depth - 2)*2;
+  return TB_BLACK + ((depth-2) % 6)*2;
 }
 
 void render_line(int screen_row, const string& s, int bg) {  // -> screen