mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-20 09:16:15 +00:00
loading codeblock css on theme switch
This commit is contained in:
parent
1242b69868
commit
c8b40e7b6a
@ -83,8 +83,10 @@ export default {
|
||||
if (this.userTheme == "dark" || (!this.userTheme && this.systemTheme)) {
|
||||
document.documentElement.classList.add("dark");
|
||||
this.moonIcon.classList.add("display-none");
|
||||
import('highlight.js/styles/tokyo-night-dark.css');
|
||||
return
|
||||
}
|
||||
import('highlight.js/styles/tomorrow-night-blue.css');
|
||||
this.sunIcon.classList.add("display-none")
|
||||
|
||||
},
|
||||
@ -93,9 +95,11 @@ export default {
|
||||
document.documentElement.classList.remove("dark");
|
||||
localStorage.setItem("theme", "light")
|
||||
this.iconToggle()
|
||||
import('highlight.js/styles/tomorrow-night-blue.css');
|
||||
return
|
||||
|
||||
}
|
||||
import('highlight.js/styles/tokyo-night-dark.css');
|
||||
document.documentElement.classList.add("dark");
|
||||
localStorage.setItem("theme", "dark")
|
||||
this.iconToggle()
|
||||
|
Loading…
x
Reference in New Issue
Block a user