add different color for cleanup nodes in dark mode

This commit is contained in:
Vishnunarayan K I 2020-11-12 13:17:43 +05:30
parent 86a7831f0b
commit 51ecb96252

View file

@ -41,7 +41,8 @@ fn bb_to_graph_node(block: BasicBlock, body: &Body<'_>, dark_mode: bool) -> Node
let label = node(def_id, block);
let (title, bgcolor) = if data.is_cleanup {
(format!("{} (cleanup)", block.index()), "lightblue")
let color = if dark_mode { "royalblue" } else { "lightblue" };
(format!("{} (cleanup)", block.index()), color)
} else {
let color = if dark_mode { "dimgray" } else { "gray" };
(format!("{}", block.index()), color)