From 75bb5e4ab1c1b3d8d677628813dd13b7061209cd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 20 Jan 2020 02:53:56 -0800 Subject: [PATCH] 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. --- tools/browse_trace.cc | 3 +-- 1 file changed, 1 insertion(+), 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