Skip to content

Commit a965ea4

Browse files
author
Alexander Eyers-Taylor
authored
Graph: Set fill color for all graph text (#2707)
Grapviz no longer sets it to the default so we don't have anything to override
1 parent 2569f63 commit a965ea4

File tree

1 file changed

+4
-2
lines changed
  • extensions/ql-vscode/src/view/results

1 file changed

+4
-2
lines changed

extensions/ql-vscode/src/view/results/graph.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ export function Graph({ graphData, databaseUri }: GraphProps) {
5252
});
5353
}
5454
}
55-
5655
if ("fill" in d.attributes) {
57-
d.attributes.fill = d.tag === "text" ? color : backgroundColor;
56+
d.attributes.fill = backgroundColor;
57+
}
58+
if (d.tag === "text") {
59+
d.attributes.fill = color;
5860
}
5961
if ("stroke" in d.attributes) {
6062
// There is no proper way to identify the element containing the graph (which we

0 commit comments

Comments
 (0)