new: Replace code highlight color and optimize interface layout

This commit is contained in:
2024-12-25 09:47:19 +08:00
parent fc54cc9cb6
commit 3996e8fb39
14 changed files with 321 additions and 134 deletions

View File

@@ -40,11 +40,11 @@ function setTheme() {
function replaceCssFile() {
let oldHref, newHref;
if (theme === "dark") {
oldHref = "xcode-light.css";
newHref = "xcode-dark.css";
oldHref = "github-light.css";
newHref = "github-dark.css";
} else {
oldHref = "xcode-dark.css";
newHref = "xcode-light.css";
oldHref = "github-dark.css";
newHref = "github-light.css";
}
const links = document.querySelectorAll('link[rel="stylesheet"]');