fix: made editor use theme colors
This commit is contained in:
parent
688d8db713
commit
0c2ffbbb9f
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue