Switch to hard-coded colours for formula debugger as well.

(cherry picked from commit 8285cac7f5)
This commit is contained in:
Wedge009 2021-09-17 00:58:44 +10:00
parent 1014fd1741
commit 6b1de3bc1d

View file

@ -46,8 +46,8 @@ void formula_debugger::pre_show(window& window)
for(int d = 0; d < c; ++d) {
stack_text << indent;
}
stack_text << "#<span color=\"green\">" << i.counter()
<< "</span>: \"<span color=\"green\">" << font::escape_text(i.name())
stack_text << "#<span color=\"#00ff00\">" << i.counter()
<< "</span>: \"<span color=\"#00ff00\">" << font::escape_text(i.name())
<< "</span>\": (" << font::escape_text(i.str()) << ") " << std::endl;
++c;
}
@ -68,14 +68,14 @@ void formula_debugger::pre_show(window& window)
execution_text << indent;
}
if(!i.evaluated()) {
execution_text << "#<span color=\"green\">" << i.counter()
<< "</span>: \"<span color=\"green\">" << font::escape_text(i.name())
execution_text << "#<span color=\"#00ff00\">" << i.counter()
<< "</span>: \"<span color=\"#00ff00\">" << font::escape_text(i.name())
<< "</span>\": (" << font::escape_text(i.str()) << ") " << std::endl;
} else {
execution_text << "#<span color=\"yellow\">" << i.counter()
<< "</span>: \"<span color=\"yellow\">" << font::escape_text(i.name())
execution_text << "#<span color=\"#ffff00\">" << i.counter()
<< "</span>: \"<span color=\"#ffff00\">" << font::escape_text(i.name())
<< "</span>\": (" << font::escape_text(i.str()) << ") = "
<< "<span color=\"orange\">"
<< "<span color=\"#ffa500\">"
<< font::escape_text(i.value().to_debug_string())
<< "</span>" << std::endl;
}