Skip to content

Commit

Permalink
Support dark mode in GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Feb 12, 2023
1 parent 05ad64d commit 3fd6b70
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion webshit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
<link rel="stylesheet" type="text/css" href="litegraph.css">
<script type="text/javascript" src="litegraph.core.js"></script>
</head>
<style>
.customtext_input {
background-color: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #202020;
}
.customtext_input {
background-color: #202020;
color: white;
}
}
</style>
<body style='width:100%; height:100%; overflow: hidden;'>
<style>
.modal {
Expand Down Expand Up @@ -198,7 +212,7 @@
};
w.input_div = document.createElement('div');
w.input_div.contentEditable = true;
w.input_div.style.backgroundColor = "#FFFFFF";
w.input_div.className = "customtext_input";
w.input_div.style.overflow = 'hidden';
w.input_div.style.overflowY = 'auto';
w.input_div.style.padding = 2;
Expand Down

0 comments on commit 3fd6b70

Please sign in to comment.