This commit is contained in:
Nova Cat 2024-11-30 21:46:05 -08:00
parent cced136a3b
commit 6b29213c6e

View file

@ -18,7 +18,7 @@ color: white !important;
.ui-widget-content, ui-dialog-title, .dashboard-panel__headline a, text-muted, h1 small { .ui-widget-content, ui-dialog-title, .dashboard-panel__headline a, text-muted, h1 small {
color: white; color: white;
} }
input, .form-control { input, .form-control, splitter-bar splitter-pane {
background: black; background: black;
color: white; color: white;
} }
@ -56,6 +56,9 @@ opacity: 1;
} }
`; `;
document.body.appendChild(style);
// Totally didn't take this code from Stack Overflow :3
function waitForElm(selector) { function waitForElm(selector) {
return new Promise(resolve => { return new Promise(resolve => {
if (document.querySelector(selector)) { if (document.querySelector(selector)) {
@ -76,7 +79,6 @@ function waitForElm(selector) {
}); });
}); });
} }
document.body.appendChild(style);
waitForElm('.ace_gutter').then((elm) => { waitForElm('.ace_gutter').then((elm) => {
Anywhere.Editor.editor.setOption("theme", "ace/theme/tomorrow_night") Anywhere.Editor.editor.setOption("theme", "ace/theme/tomorrow_night")
}); });