fix: made editor use theme colors

This commit is contained in:
ThinLiquid 2024-01-24 13:56:54 +00:00
parent 688d8db713
commit 0c2ffbbb9f
No known key found for this signature in database
GPG key ID: 17538DC3DF6A7387

View file

@ -169,6 +169,7 @@ const Editor: Process = {
const style = document.createElement('style')
style.textContent = `
.prism-code-editor {
color: var(--text);
border-radius: 10px 10px 0 0;
caret-color: var(--text);
font-weight: 400;
@ -208,6 +209,9 @@ const Editor: Process = {
document.addEventListener('fs_update', () => {
render().catch(e => console.error(e))
})
document.addEventListener('theme_update', () => {
render().catch(e => console.error(e))
})
}
return
}