diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-05-13 08:29:47 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-05-14 12:54:30 +0000 |
commit | cfae61b65a66d958367270d4d58ce7996a4987b7 (patch) | |
tree | 959f4242571dd7c4cbeea73a25608f9a33f20ec7 /src/cmd/compile/internal/ssa/html.go | |
parent | 61336b78c18e90d90d68c5c2ce61d8d530669ed1 (diff) | |
download | go-cfae61b65a66d958367270d4d58ce7996a4987b7.tar.gz go-cfae61b65a66d958367270d4d58ce7996a4987b7.zip |
cmd/compile: tweak ssa.html colors
Make yellow the last highlight color rather than the first.
Yellow is also the color that Chrome uses to highlight
search results, which can be confusing.
Also, when Night Shift is on on macOS,
yellow highlighting is completely invisible.
I suppose should be sleeping instead.
Also, remove a completed TODO.
Change-Id: I0eb4439272fad9ccb5fe8e2cf409fdd5dc15b26e
Reviewed-on: https://go-review.googlesource.com/43463
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/html.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/html.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/ssa/html.go b/src/cmd/compile/internal/ssa/html.go index e98c5dc460..d554907beb 100644 --- a/src/cmd/compile/internal/ssa/html.go +++ b/src/cmd/compile/internal/ssa/html.go @@ -142,13 +142,13 @@ dd.ssa-prog { <script type="text/javascript"> // ordered list of all available highlight colors var highlights = [ - "highlight-yellow", "highlight-aquamarine", "highlight-coral", "highlight-lightpink", "highlight-lightsteelblue", "highlight-palegreen", - "highlight-lightgray" + "highlight-lightgray", + "highlight-yellow" ]; // state: which value is highlighted this color? @@ -264,8 +264,6 @@ function toggle_visibility(id) { </script> </head>`) - // TODO: Add javascript click handlers for blocks - // to outline that block across all phases w.WriteString("<body>") w.WriteString("<h1>") w.WriteString(html.EscapeString(name)) |