Skip to content

Commit

Permalink
feat(graph): added dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisDommer committed Dec 5, 2023
1 parent 26e9f51 commit 1b955c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WebSocketClient/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ const createLanguageClient = (transports: MessageTransports): MonacoLanguageClie
function createDiagramFromDot(res: string): void {
instance().then(viz => {
const div = document.getElementsByClassName("graph");
div[0].replaceChildren(viz.renderSVGElement(res!));
let svg = viz.renderSVGElement(res!);
svg.id = "SVGGraph";
div[0].replaceChildren(svg);
});
}

Expand Down
7 changes: 7 additions & 0 deletions WebSocketClient/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ body {

.graph {
overflow: scroll;
background: #1e1e1e;
height: 100%;
}

#SVGGraph {
margin: 30vh auto;
display: block;
}

::backdrop {
Expand Down
Binary file modified WebSocketLanguageServer/lib/uvls
Binary file not shown.

0 comments on commit 1b955c5

Please sign in to comment.