diff --git a/extensions/ql-vscode/src/view/results/graph.tsx b/extensions/ql-vscode/src/view/results/graph.tsx index 0c05f690a..5f23d1134 100644 --- a/extensions/ql-vscode/src/view/results/graph.tsx +++ b/extensions/ql-vscode/src/view/results/graph.tsx @@ -52,9 +52,11 @@ export function Graph({ graphData, databaseUri }: GraphProps) { }); } } - if ("fill" in d.attributes) { - d.attributes.fill = d.tag === "text" ? color : backgroundColor; + d.attributes.fill = backgroundColor; + } + if (d.tag === "text") { + d.attributes.fill = color; } if ("stroke" in d.attributes) { // There is no proper way to identify the element containing the graph (which we