From 2894e8d5deba8af7afb2548420c8014348027a19 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 22 Jan 2016 12:33:57 -0800 Subject: 2589 - tweak color for sandbox labels I'm now thinking about how to support scrolling on the sandbox side. Caleb's idea is to use down-arrow inside the sandbox editor, and then "scroll off" the editor to the top of each successive sandbox. I think I'll reserve the white background as the cursor color in that situation. I wonder if I should just undo all the support for sandbox labels since yesterday. Labels are perhaps superfluous once I support scrolling and reorder sandboxes to always throw ones with errors up top. But then you can end up scrolling through lots of tests without any sense of how far down you are. So the other approach is to keep labels and try to keep them stable, not reorder them. Looking further ahead I'm going to need a way to jump to a specific sandbox. Maybe instead of reordering sandboxes I should just automatically render from the first sandbox with error. Maybe show the number of failed sandboxes in the status instead of the index of the first failure. --- sandbox/005-sandbox.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sandbox') diff --git a/sandbox/005-sandbox.mu b/sandbox/005-sandbox.mu index 19bce3d7..fec08106 100644 --- a/sandbox/005-sandbox.mu +++ b/sandbox/005-sandbox.mu @@ -68,7 +68,7 @@ scenario run-and-show-results [ . . ] # sandbox title in reverse video - screen-should-contain-in-color 0/black, [ + screen-should-contain-in-color 240/dark-grey, [ . . . . . . @@ -244,7 +244,7 @@ recipe render-sandboxes screen:address:shared:screen, sandbox:address:shared:san # render sandbox menu row <- add row, 1 screen <- move-cursor screen, row, left - print screen, idx, 0/black, 245/grey + print screen, idx, 240/dark-grey clear-line-delimited screen, left, right delete-icon:character <- copy 120/x print screen, delete-icon, 245/grey -- cgit 1.4.1-2-gfad0