sidebar: ai: latex: support dark mode

This commit is contained in:
end-4
2024-03-20 22:49:25 +07:00
parent 4f7000fc07
commit 1170709247
5 changed files with 11 additions and 9 deletions
@@ -251,7 +251,6 @@ const WaifuImage = (taglist) => {
else Utils.execAsync(['bash', '-c', `wget -O '${thisBlock.attribute.imagePath}' '${url}'`])
.then(showImage)
.catch(print);
console.log(`background-color: mix(${darkMode ? 'black' : 'white'}, ${dominant_color}, 0.97);`);
thisBlock.css = `background-color: mix(${darkMode ? 'black' : 'white'}, ${dominant_color}, 0.97);`;
},
},